diff --git a/src/lib/serial/device.ts b/src/lib/serial/device.ts index 63fc12af..2480ddd7 100644 --- a/src/lib/serial/device.ts +++ b/src/lib/serial/device.ts @@ -244,7 +244,7 @@ export class CharaDevice { async deleteChord(chord: Pick) { const status = await this.send(`CML C4 ${stringifyChordActions(chord.actions)}`) console.log(status) - if (status.at(-1) !== "2") throw new Error(`Failed with status ${status}`) + if (status.at(-1) !== "2" && status.at(-1) !== "0") throw new Error(`Failed with status ${status}`) } /**