Fixed reference from 'MspHelper' to 'mspHelper'.
parent
1f6ede8deb
commit
838ab954f1
|
@ -706,15 +706,15 @@ function configuration_restore(callback) {
|
|||
}
|
||||
|
||||
function upload_servo_configuration() {
|
||||
MspHelper.sendServoConfigurations(upload_mode_ranges);
|
||||
mspHelper.sendServoConfigurations(upload_mode_ranges);
|
||||
}
|
||||
|
||||
function upload_mode_ranges() {
|
||||
MspHelper.sendModeRanges(upload_adjustment_ranges);
|
||||
mspHelper.sendModeRanges(upload_adjustment_ranges);
|
||||
}
|
||||
|
||||
function upload_adjustment_ranges() {
|
||||
MspHelper.sendAdjustmentRanges(upload_using_specific_commands);
|
||||
mspHelper.sendAdjustmentRanges(upload_using_specific_commands);
|
||||
}
|
||||
// start uploading
|
||||
load_objects(0);
|
||||
|
@ -783,23 +783,23 @@ function configuration_restore(callback) {
|
|||
}
|
||||
|
||||
function send_led_strip_config() {
|
||||
MspHelper.sendLedStripConfig(send_led_strip_colors);
|
||||
mspHelper.sendLedStripConfig(send_led_strip_colors);
|
||||
}
|
||||
|
||||
function send_led_strip_colors() {
|
||||
MspHelper.sendLedStripColors(send_led_strip_mode_colors);
|
||||
mspHelper.sendLedStripColors(send_led_strip_mode_colors);
|
||||
}
|
||||
|
||||
function send_led_strip_mode_colors() {
|
||||
if (semver.gte(CONFIG.apiVersion, "1.19.0"))
|
||||
MspHelper.sendLedStripModeColors(send_rxfail_config);
|
||||
mspHelper.sendLedStripModeColors(send_rxfail_config);
|
||||
else
|
||||
send_rxfail_config();
|
||||
}
|
||||
|
||||
function send_rxfail_config() {
|
||||
if (semver.gte(CONFIG.apiVersion, "1.15.0")) {
|
||||
MspHelper.sendRxFailConfig(save_to_eeprom);
|
||||
mspHelper.sendRxFailConfig(save_to_eeprom);
|
||||
} else {
|
||||
save_to_eeprom();
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
|
||||
function MspHelper () {
|
||||
|
||||
}
|
||||
|
||||
MspHelper.prototype.process_data = function(dataHandler) {
|
||||
var self = this;
|
||||
var data = dataHandler.dataView; // DataView (allowing us to view arrayBuffer as struct/union)
|
||||
|
|
|
@ -212,7 +212,7 @@ TABS.adjustments.initialize = function (callback) {
|
|||
//
|
||||
// send data to FC
|
||||
//
|
||||
MspHelper.sendAdjustmentRanges(save_to_eeprom);
|
||||
mspHelper.sendAdjustmentRanges(save_to_eeprom);
|
||||
|
||||
function save_to_eeprom() {
|
||||
MSP.send_message(MSPCodes.MSP_EEPROM_WRITE, false, false, function () {
|
||||
|
|
|
@ -212,7 +212,7 @@ TABS.auxiliary.initialize = function (callback) {
|
|||
//
|
||||
// send data to FC
|
||||
//
|
||||
MspHelper.sendModeRanges(save_to_eeprom);
|
||||
mspHelper.sendModeRanges(save_to_eeprom);
|
||||
|
||||
function save_to_eeprom() {
|
||||
MSP.send_message(MSPCodes.MSP_EEPROM_WRITE, false, false, function () {
|
||||
|
|
|
@ -297,7 +297,7 @@ TABS.failsafe.initialize = function (callback, scrollPosition) {
|
|||
}
|
||||
|
||||
function save_rxfail_config() {
|
||||
MspHelper.sendRxFailConfig(save_bf_config);
|
||||
mspHelper.sendRxFailConfig(save_bf_config);
|
||||
}
|
||||
|
||||
function save_bf_config() {
|
||||
|
|
|
@ -541,15 +541,15 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {
|
|||
|
||||
$('a.save').click(function () {
|
||||
|
||||
MspHelper.sendLedStripConfig(send_led_strip_colors);
|
||||
mspHelper.sendLedStripConfig(send_led_strip_colors);
|
||||
|
||||
function send_led_strip_colors() {
|
||||
MspHelper.sendLedStripColors(send_led_strip_mode_colors);
|
||||
mspHelper.sendLedStripColors(send_led_strip_mode_colors);
|
||||
}
|
||||
|
||||
function send_led_strip_mode_colors() {
|
||||
if (semver.gte(CONFIG.apiVersion, "1.19.0"))
|
||||
MspHelper.sendLedStripModeColors(save_to_eeprom);
|
||||
mspHelper.sendLedStripModeColors(save_to_eeprom);
|
||||
else
|
||||
save_to_eeprom();
|
||||
}
|
||||
|
|
|
@ -359,7 +359,7 @@ TABS.onboard_logging.initialize = function (callback) {
|
|||
mark_saving_dialog_done();
|
||||
}
|
||||
} else {
|
||||
MspHelper.dataflashRead(nextAddress, onChunkRead);
|
||||
mspHelper.dataflashRead(nextAddress, onChunkRead);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -370,12 +370,12 @@ TABS.onboard_logging.initialize = function (callback) {
|
|||
}
|
||||
} else {
|
||||
// There was an error with the received block (address didn't match the one we asked for), retry
|
||||
MspHelper.dataflashRead(nextAddress, onChunkRead);
|
||||
mspHelper.dataflashRead(nextAddress, onChunkRead);
|
||||
}
|
||||
}
|
||||
|
||||
// Fetch the initial block
|
||||
MspHelper.dataflashRead(nextAddress, onChunkRead);
|
||||
mspHelper.dataflashRead(nextAddress, onChunkRead);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -259,7 +259,7 @@ TABS.receiver.initialize = function (callback) {
|
|||
// Give the window a callback it can use to send the channels (otherwise it can't see those objects)
|
||||
createdWindow.contentWindow.setRawRx = function(channels) {
|
||||
if (CONFIGURATOR.connectionValid && GUI.active_tab != 'cli') {
|
||||
MspHelper.setRawRx(channels);
|
||||
mspHelper.setRawRx(channels);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
@ -141,10 +141,10 @@ TABS.servos.initialize = function (callback) {
|
|||
//
|
||||
// send data to FC
|
||||
//
|
||||
MspHelper.sendServoConfigurations(send_servo_mixer_rules);
|
||||
mspHelper.sendServoConfigurations(send_servo_mixer_rules);
|
||||
|
||||
function send_servo_mixer_rules() {
|
||||
MspHelper.sendServoConfigurations(save_to_eeprom);
|
||||
mspHelper.sendServoConfigurations(save_to_eeprom);
|
||||
}
|
||||
|
||||
function save_to_eeprom() {
|
||||
|
|
Loading…
Reference in New Issue