From 64038b64a07940b74658ca298f6788e1327a6d30 Mon Sep 17 00:00:00 2001 From: cTn Date: Fri, 3 Jan 2014 10:40:15 +0100 Subject: [PATCH] enable MSP_STATUS update in servos tab --- js/gui.js | 2 ++ tabs/servos.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/js/gui.js b/js/gui.js index ebdf6040ec..0e412f1f0b 100644 --- a/js/gui.js +++ b/js/gui.js @@ -189,6 +189,8 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) { if (callback) callback(); break; case 'servos': + GUI.interval_remove('servos_data_poll'); + if (callback) callback(); break; case 'gps': diff --git a/tabs/servos.js b/tabs/servos.js index 8c2306d604..7d35548126 100644 --- a/tabs/servos.js +++ b/tabs/servos.js @@ -120,6 +120,11 @@ function tab_initialize_servos() { servos_update(true); } }); + + // enable data pulling + GUI.interval_add('servos_data_poll', function() { + send_message(MSP_codes.MSP_STATUS, MSP_codes.MSP_STATUS); + }, 50); } function servos_update(save_to_eeprom) {