Skip to content

Commit

Permalink
fix: sisyfos add fade time during reset (#339)
Browse files Browse the repository at this point in the history
* fix: sisyfos add fade time during reset

* chore: remove assertion
  • Loading branch information
mint-dewit authored Jul 3, 2024
1 parent 2d08c7c commit f6a3609
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,21 @@ export class SisyfosApi extends EventEmitter {
})
}
if (command.values.pgmOn !== undefined) {
const args: Array<MetaArgument> = [
{
type: 'i',
value: command.values.pgmOn,
},
]
if (command.values.fadeTime) {
args.push({
type: 'f',
value: command.values.fadeTime,
})
}
this._oscClient.send({
address: `/ch/${command.channel + 1}/pgm`,
args: [
{
type: 'i',
value: command.values.pgmOn,
},
],
args,
})
}
if (command.values.pstOn !== undefined) {
Expand Down

0 comments on commit f6a3609

Please sign in to comment.