Promise in transfer(...) should resolve after DFU Target is activated and reset.

This commit is contained in:
Michael Dietz
2016-02-17 16:17:24 +01:00
parent 70f681e20e
commit c18979f5e1
2 changed files with 3 additions and 2 deletions

1
dist/dfu.js vendored
View File

@@ -397,6 +397,7 @@
controlChar.writeValue(new Uint8Array([5]))
.then(() => {
log('image activated and dfu target reset');
resolve(); // TODO: Resolve in disconnect event handler when implemented in Web Bluetooth API.
})
.catch(error => {
error = "error resetting: " + error;