diff --git a/js/msp.js b/js/msp.js index 538384fa..2b7a890e 100644 --- a/js/msp.js +++ b/js/msp.js @@ -1356,9 +1356,9 @@ MSP.sendServoConfigurations = function(onCompleteCallback) { if (SERVO_CONFIG.length == 0) { onCompleteCallback(); - } - + } else { nextFunction(); + } function send_next_servo_configuration() { @@ -1479,10 +1479,9 @@ MSP.sendAdjustmentRanges = function(onCompleteCallback) { if (ADJUSTMENT_RANGES.length == 0) { onCompleteCallback(); - } - + } else { send_next_adjustment_range(); - + } function send_next_adjustment_range() { @@ -1515,9 +1514,9 @@ MSP.sendLedStripConfig = function(onCompleteCallback) { if (LED_STRIP.length == 0) { onCompleteCallback(); - } - + } else { send_next_led_strip_config(); + } function send_next_led_strip_config() {