Fixed reference from 'MspHelper' to 'mspHelper'.

10.3.x-maintenance
mikeller 2016-08-14 01:15:14 +12:00
parent 1f6ede8deb
commit 838ab954f1
9 changed files with 21 additions and 21 deletions

View File

@ -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();
}

View File

@ -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)
@ -1811,4 +1811,4 @@ MSP.SDCARD_STATE_NOT_PRESENT = 0; //TODO, move these to better place
MSP.SDCARD_STATE_FATAL = 1;
MSP.SDCARD_STATE_CARD_INIT = 2;
MSP.SDCARD_STATE_FS_INIT = 3;
MSP.SDCARD_STATE_READY = 4;
MSP.SDCARD_STATE_READY = 4;

View File

@ -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 () {

View File

@ -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 () {

View File

@ -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() {

View File

@ -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();
}

View File

@ -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);
});
});
}

View File

@ -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;

View File

@ -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() {