From 02215ccf40114ad3c4f13730780b0a49a1650b4c Mon Sep 17 00:00:00 2001 From: bene Date: Sun, 9 Jan 2022 13:55:18 +0100 Subject: [PATCH] handle busy/full feedback message commands with startup and completion information changed from 0x11 (= execute immediately + request feedback) to 0x01 (= buffer if neccessary + request reedback) can return feedback 0x10 = busy/full. This feedback should not resolve the buffered commands. --- src/devices/device.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/device.ts b/src/devices/device.ts index 734aa95..7c23205 100644 --- a/src/devices/device.ts +++ b/src/devices/device.ts @@ -168,6 +168,7 @@ export class Device extends EventEmitter { } public finish (message: number) { + if((message & 0x10) === 0x10) return; // "busy/full" this._busy = (message & 0x01) === 0x01; while(this._finishedCallbacks.length > Number(this._busy)) { const callback = this._finishedCallbacks.shift();