1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

remove obsolete chunk of code

This commit is contained in:
cTn 2014-06-10 00:04:30 +02:00
parent 7d3a29c0b7
commit 1fb060e0fa

View file

@ -374,26 +374,8 @@ STM32DFU_protocol.prototype.upload_procedure = function(step) {
setTimeout(function() {
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.controlTransfer('in', self.request.GETSTATUS, 0, 0, 6, 0, function(data) {
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);
}
});
self.loadAddress(address, function() {
clear_status();
});
} else {
clear_status(function() {