1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

adding method to empty send buffer, limits

This commit is contained in:
cTn 2014-01-26 21:37:19 +01:00
parent c7dae0f5e3
commit c389a71ece
3 changed files with 18 additions and 4 deletions

View file

@ -204,7 +204,8 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
if (callback) callback();
break;
case 'sensors':
GUI.interval_kill_all(['port-update', 'port_usage', 'serial_read']);
GUI.interval_kill_all(['port-update', 'port_usage']);
serial.empty_output_buffer();
// sensor data tab uses scrollbars, emptying the content before loading another tab
// prevents scrollbar exposure to any of the tabs while new content is loaded in