Skip to content

Commit ff5d880

Browse files
fix: safeboot could leave device in false busy state
1 parent e8bf643 commit ff5d880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Device.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class Device {
196196
}
197197
});
198198
// resetting the device should also reset the waiting calls
199-
this.adapter.__proxyMeta.reset();
199+
[...this.adapter.__proxyMeta.history].pop().promise.finally(() => this.adapter.__proxyMeta.reset());
200200
this.log.info("send \\x06 (safeboot)");
201201
this.adapter.sendData("\x06"); // safeboot
202202
});

0 commit comments

Comments
 (0)