mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
DFU: Add local erase, 2 kB page size hardcoded
Not possible to read chip ID using DFU or page size info from USB descriptor (not yet supported by Chrome)
This commit is contained in:
parent
d89e9682c2
commit
1e386f508b
3 changed files with 105 additions and 32 deletions
|
@ -107,7 +107,7 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
|
|||
PortHandler.check_usb_devices(function(dfu_available) {
|
||||
if(dfu_available) {
|
||||
GUI.connect_lock = false;
|
||||
STM32DFU.connect(usbDevices.STM32DFU, hex);
|
||||
STM32DFU.connect(usbDevices.STM32DFU, hex, options);
|
||||
} else {
|
||||
serial.connect(port, {bitrate: self.baud, parityBit: 'even', stopBits: 'one'}, function (openInfo) {
|
||||
if (openInfo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue