Skip to content

Commit

Permalink
fix: sisyfos receive channel number as index
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Apr 2, 2024
1 parent e36853f commit b06a79b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class SisyfosApi extends EventEmitter {
)
this.emit('initialized')
} else if (address[0] === 'ch' && this._state) {
const ch = address[1]
const ch = Number(address[1]) - 1
this._state.channels[ch] = {
...this._state.channels[ch],
...this.parseChannelCommand(message, address.slice(2)),
Expand Down

0 comments on commit b06a79b

Please sign in to comment.