mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +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
|
self.send([self.command.get, 0xFF], 2, function(data) { // 0x00 ^ 0xFF
|
||||||
if (self.verify_response(self.status.ACK, data)) {
|
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)
|
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
|
// proceed to next step
|
||||||
self.upload_procedure(3);
|
self.upload_procedure(3);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue