1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

interval timers bugfixes

This commit is contained in:
cTn 2014-06-27 18:19:53 +02:00
parent f352c4edbe
commit e37da07bc8

View file

@ -227,8 +227,7 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
if (callback) callback();
break;
case 'motor_outputs':
GUI.interval_remove('motor_pull');
GUI.interval_remove('status_pull');
GUI.interval_kill_all();
if (callback) callback();
break;
@ -265,6 +264,11 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
}, 5000); // if we dont allow enough time to reboot, CRC of "first" command sent will fail, keep an eye for this one
});
break;
case 'logging':
GUI.interval_kill_all();
if (callback) callback();
break;
case 'firmware_flasher':
// this.interval_remove('factory_mode');
PortHandler.flush_callbacks();