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

utilize MSP_SET_MOTOR callback (its possible now)

This commit is contained in:
cTn 2014-02-20 12:13:33 +01:00
parent 6e6f7a77c2
commit c44f1bb36d

View file

@ -221,9 +221,9 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
buffer_out.push(highByte(MISC.minthrottle)); buffer_out.push(highByte(MISC.minthrottle));
} }
send_message(MSP_codes.MSP_SET_MOTOR, buffer_out); send_message(MSP_codes.MSP_SET_MOTOR, buffer_out, false, function() {
if (callback) callback(); if (callback) callback();
});
break; break;
case 'sensors': case 'sensors':
GUI.interval_kill_all(['port-update', 'port_usage']); GUI.interval_kill_all(['port-update', 'port_usage']);