From c44f1bb36d5c2738f86dd54dfac5b0c53283697f Mon Sep 17 00:00:00 2001 From: cTn Date: Thu, 20 Feb 2014 12:13:33 +0100 Subject: [PATCH] utilize MSP_SET_MOTOR callback (its possible now) --- js/gui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/gui.js b/js/gui.js index ee16f9a4db..d986bd8acb 100644 --- a/js/gui.js +++ b/js/gui.js @@ -221,9 +221,9 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) { buffer_out.push(highByte(MISC.minthrottle)); } - send_message(MSP_codes.MSP_SET_MOTOR, buffer_out); - - if (callback) callback(); + send_message(MSP_codes.MSP_SET_MOTOR, buffer_out, false, function() { + if (callback) callback(); + }); break; case 'sensors': GUI.interval_kill_all(['port-update', 'port_usage']);