mirror of
https://github.com/thegecko/web-bluetooth-dfu.git
synced 2025-12-12 12:08:13 +08:00
Small bug fix: if version is 6 or lower don't send init packet.
This commit is contained in:
2
dist/dfu.js
vendored
2
dist/dfu.js
vendored
@@ -325,7 +325,7 @@
|
||||
case OPCODE.START_DFU:
|
||||
log('write init packet');
|
||||
|
||||
if(majorVersion >= 6) { // init packet is not used in SDK v6 (so not used in mbed).
|
||||
if(majorVersion <= 6) { // init packet is not used in SDK v6 (so not used in mbed).
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user