Skip to content

Commit

Permalink
fix: val.readUint8 is not a function (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautMarechal authored Jul 11, 2024
1 parent 3da1070 commit d80b765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/models/base-gen2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ export abstract class StreamDeckGen2Base extends StreamDeckBase {

public async getFirmwareVersion(): Promise<string> {
const val = await this.device.getFeatureReport(5, 32)
const end = val.readUint8(1) + 2
const end = val.readUInt8(1) + 2
return val.toString('ascii', 6, end)
}

public async getSerialNumber(): Promise<string> {
const val = await this.device.getFeatureReport(6, 32)
const end = val.readUint8(1) + 2
const end = val.readUInt8(1) + 2
return val.toString('ascii', 2, end)
}

Expand Down

0 comments on commit d80b765

Please sign in to comment.