mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
extra failsafe to trigger while leaving motor tab
This commit is contained in:
parent
60cdd51dfa
commit
9de5cdcf84
1 changed files with 10 additions and 0 deletions
10
js/gui.js
10
js/gui.js
|
@ -213,6 +213,16 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
|
||||||
case 'motor_outputs':
|
case 'motor_outputs':
|
||||||
GUI.interval_remove('motor_poll');
|
GUI.interval_remove('motor_poll');
|
||||||
|
|
||||||
|
// send data to mcu
|
||||||
|
var buffer_out = [];
|
||||||
|
|
||||||
|
for (var i = 0; i < 8; i++) {
|
||||||
|
buffer_out.push(lowByte(MISC.minthrottle));
|
||||||
|
buffer_out.push(highByte(MISC.minthrottle));
|
||||||
|
}
|
||||||
|
|
||||||
|
send_message(MSP_codes.MSP_SET_MOTOR, buffer_out);
|
||||||
|
|
||||||
if (callback) callback();
|
if (callback) callback();
|
||||||
break;
|
break;
|
||||||
case 'sensors':
|
case 'sensors':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue