Skip to content

Commit

Permalink
Fix for zigate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Apr 30, 2024
1 parent b93354f commit 6a83f89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adapter/zigate/driver/buffaloZiGate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ class BuffaloZiGate extends Buffalo {

public writeRaw(value: Buffer): void {
this.buffer.set(value, this.position);
// XXX: broken? position increased by 1 not by buffer.length
this.position++;
this.position += value.length;
}

public readUInt16BE(): number {
Expand Down

0 comments on commit 6a83f89

Please sign in to comment.