mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 03:49:53 +03:00
had it right the first time
This commit is contained in:
parent
c2a4223868
commit
ee52ab0aaf
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ STM32_protocol.prototype.upload_procedure = function(step) {
|
|||
self.send([self.command.get, 0xFF], 2, function(data) { // 0x00 ^ 0xFF
|
||||
if (self.verify_response(self.status.ACK, data)) {
|
||||
self.retrieve(data[1] + 2, function(data) { // data[1] = number of bytes that will follow (should be 12 + ack)
|
||||
console.log('STM32 - Bootloader version: ' + (parseInt(data[1].toString(16)) / 10).toFixed(1)); // convert dec to hex, hex to dec and add floating point
|
||||
console.log('STM32 - Bootloader version: ' + (parseInt(data[0].toString(16)) / 10).toFixed(1)); // convert dec to hex, hex to dec and add floating point
|
||||
|
||||
// proceed to next step
|
||||
self.upload_procedure(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue