mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-12 20:18:13 +08:00
Change order of parameters of provision().
This commit is contained in:
@@ -43,7 +43,7 @@ dfu.findDevice({ services: [0x180D] })
|
||||
log("file length: " + buffer.byteLength);
|
||||
var crc = crc16(buffer);
|
||||
|
||||
return dfu.provision(device, buffer, 4, crc);
|
||||
return dfu.provision(device, buffer, crc);
|
||||
})
|
||||
.then(() => process.exit())
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user