fix: chords can't be deleted

This commit is contained in:
2023-11-03 23:13:56 +01:00
parent 9b95e1d67a
commit c661a4b30b
2 changed files with 21 additions and 16 deletions

View File

@@ -211,6 +211,7 @@ export class CharaDevice {
}
async deleteChord(chord: Pick<Chord, "actions">) {
console.log(`CML C4 ${stringifyChordActions(chord.actions)}`)
const status = await this.send(`CML C4 ${stringifyChordActions(chord.actions)}`)
if (status.at(-1) !== "0") throw new Error(`Failed with status ${status}`)
}