mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Add support for backup and restore of led strip config.
Various minor code cleanups.
This commit is contained in:
parent
b0743f6bae
commit
8c10f39606
4 changed files with 84 additions and 46 deletions
12
js/msp.js
12
js/msp.js
|
@ -939,6 +939,10 @@ MSP.sendModeRanges = function(onCompleteCallback) {
|
|||
|
||||
var modeRangeIndex = 0;
|
||||
|
||||
if (MODE_RANGES.length == 0) {
|
||||
onCompleteCallback();
|
||||
}
|
||||
|
||||
send_next_mode_range();
|
||||
|
||||
|
||||
|
@ -968,6 +972,10 @@ MSP.sendAdjustmentRanges = function(onCompleteCallback) {
|
|||
|
||||
var adjustmentRangeIndex = 0;
|
||||
|
||||
if (ADJUSTMENT_RANGES.length == 0) {
|
||||
onCompleteCallback();
|
||||
}
|
||||
|
||||
send_next_adjustment_range();
|
||||
|
||||
|
||||
|
@ -1000,6 +1008,10 @@ MSP.sendLedStripConfig = function(onCompleteCallback) {
|
|||
|
||||
var ledIndex = 0;
|
||||
|
||||
if (LED_STRIP.length == 0) {
|
||||
onCompleteCallback();
|
||||
}
|
||||
|
||||
send_next_led_strip_config();
|
||||
|
||||
function send_next_led_strip_config() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue