Skip to content

Commit

Permalink
fix: some topologyCommand properties using wrong index in 8.1.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Jun 10, 2020
1 parent 724d5aa commit 11a05c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/DeviceProfile/topologyCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export class TopologyCommand extends DeserializedCommand<AtemCapabilites> {
superSources: rawCommand.readUInt8(10 + v230offset),
// talkbackOverSDI: rawCommand.readUInt8(13),

cameraControl: rawCommand.readUInt8(17) === 1,
cameraControl: rawCommand.readUInt8(17 + v230offset) === 1,

// Note: these are defined below as they can overflow in older firmwares
advancedChromaKeyers: false
}

// in 7.4?
if (rawCommand.length > 20) {
properties.advancedChromaKeyers = rawCommand.readUInt8(21) === 1
properties.advancedChromaKeyers = rawCommand.readUInt8(21 + v230offset) === 1
}

return new TopologyCommand(properties)
Expand Down

0 comments on commit 11a05c0

Please sign in to comment.