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.
This commit is contained in:
parent
07edc32a8a
commit
02215ccf40
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user