mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
remove obsolete chunk of code
This commit is contained in:
parent
7d3a29c0b7
commit
1fb060e0fa
1 changed files with 2 additions and 20 deletions
|
@ -374,26 +374,8 @@ STM32DFU_protocol.prototype.upload_procedure = function(step) {
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if (data[4] != self.state.dfuUPLOAD_IDLE) {
|
if (data[4] != self.state.dfuUPLOAD_IDLE) {
|
||||||
self.controlTransfer('out', self.request.DNLOAD, 0, 0, 0, [0x21, address, (address >> 8), (address >> 16), (address >> 24)], function(result) { // problem on this call !!
|
self.loadAddress(address, function() {
|
||||||
self.controlTransfer('in', self.request.GETSTATUS, 0, 0, 6, 0, function(data) {
|
clear_status();
|
||||||
if (data[4] == self.state.dfuDNBUSY) {
|
|
||||||
var delay = data[1] | (data[2] << 8) | (data[3] << 16);
|
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
self.controlTransfer('in', self.request.GETSTATUS, 0, 0, 6, 0, function(data) {
|
|
||||||
if (data[4] == self.state.dfuDNLOAD_IDLE) {
|
|
||||||
clear_status();
|
|
||||||
} else {
|
|
||||||
console.log(data);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, delay);
|
|
||||||
} else if (data[4] == self.state.dfuUPLOAD_IDLE) {
|
|
||||||
read();
|
|
||||||
} else {
|
|
||||||
console.log(data);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
clear_status(function() {
|
clear_status(function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue