mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 08:52:59 +00:00
fix: chords can't be deleted
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user