mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
fix timers
This commit is contained in:
parent
a580d94d10
commit
3312bf5df2
2 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ STM32DFU_protocol.prototype.connect = function (device, hex) {
|
|||
self.hex = hex;
|
||||
|
||||
// reset and set some variables before we start
|
||||
self.upload_time_start = microtime();
|
||||
self.upload_time_start = millitime();
|
||||
self.verify_hex = [];
|
||||
|
||||
// reset progress bar to initial state
|
||||
|
@ -466,7 +466,7 @@ STM32DFU_protocol.prototype.upload_procedure = function (step) {
|
|||
break;
|
||||
case 99:
|
||||
// cleanup
|
||||
console.log('Script finished after: ' + (microtime() - self.upload_time_start).toFixed(4) + ' seconds');
|
||||
console.log('Script finished after: ' + ((millitime() - self.upload_time_start) / 1000) + ' seconds');
|
||||
|
||||
self.releaseInterface(0);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue