1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 13:25:24 +03:00

Fixed reference from 'MspHelper' to 'mspHelper'.

This commit is contained in:
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() { function upload_servo_configuration() {
MspHelper.sendServoConfigurations(upload_mode_ranges); mspHelper.sendServoConfigurations(upload_mode_ranges);
} }
function upload_mode_ranges() { function upload_mode_ranges() {
MspHelper.sendModeRanges(upload_adjustment_ranges); mspHelper.sendModeRanges(upload_adjustment_ranges);
} }
function upload_adjustment_ranges() { function upload_adjustment_ranges() {
MspHelper.sendAdjustmentRanges(upload_using_specific_commands); mspHelper.sendAdjustmentRanges(upload_using_specific_commands);
} }
// start uploading // start uploading
load_objects(0); load_objects(0);
@ -783,23 +783,23 @@ function configuration_restore(callback) {
} }
function send_led_strip_config() { function send_led_strip_config() {
MspHelper.sendLedStripConfig(send_led_strip_colors); mspHelper.sendLedStripConfig(send_led_strip_colors);
} }
function 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() { function send_led_strip_mode_colors() {
if (semver.gte(CONFIG.apiVersion, "1.19.0")) if (semver.gte(CONFIG.apiVersion, "1.19.0"))
MspHelper.sendLedStripModeColors(send_rxfail_config); mspHelper.sendLedStripModeColors(send_rxfail_config);
else else
send_rxfail_config(); send_rxfail_config();
} }
function send_rxfail_config() { function send_rxfail_config() {
if (semver.gte(CONFIG.apiVersion, "1.15.0")) { if (semver.gte(CONFIG.apiVersion, "1.15.0")) {
MspHelper.sendRxFailConfig(save_to_eeprom); mspHelper.sendRxFailConfig(save_to_eeprom);
} else { } else {
save_to_eeprom(); save_to_eeprom();
} }

View file

@ -2,8 +2,8 @@
function MspHelper () { function MspHelper () {
} }
MspHelper.prototype.process_data = function(dataHandler) { MspHelper.prototype.process_data = function(dataHandler) {
var self = this; var self = this;
var data = dataHandler.dataView; // DataView (allowing us to view arrayBuffer as struct/union) var data = dataHandler.dataView; // DataView (allowing us to view arrayBuffer as struct/union)

View file

@ -212,7 +212,7 @@ TABS.adjustments.initialize = function (callback) {
// //
// send data to FC // send data to FC
// //
MspHelper.sendAdjustmentRanges(save_to_eeprom); mspHelper.sendAdjustmentRanges(save_to_eeprom);
function save_to_eeprom() { function save_to_eeprom() {
MSP.send_message(MSPCodes.MSP_EEPROM_WRITE, false, false, function () { 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 // send data to FC
// //
MspHelper.sendModeRanges(save_to_eeprom); mspHelper.sendModeRanges(save_to_eeprom);
function save_to_eeprom() { function save_to_eeprom() {
MSP.send_message(MSPCodes.MSP_EEPROM_WRITE, false, false, function () { 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() { function save_rxfail_config() {
MspHelper.sendRxFailConfig(save_bf_config); mspHelper.sendRxFailConfig(save_bf_config);
} }
function save_bf_config() { function save_bf_config() {

View file

@ -541,15 +541,15 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {
$('a.save').click(function () { $('a.save').click(function () {
MspHelper.sendLedStripConfig(send_led_strip_colors); mspHelper.sendLedStripConfig(send_led_strip_colors);
function 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() { function send_led_strip_mode_colors() {
if (semver.gte(CONFIG.apiVersion, "1.19.0")) if (semver.gte(CONFIG.apiVersion, "1.19.0"))
MspHelper.sendLedStripModeColors(save_to_eeprom); mspHelper.sendLedStripModeColors(save_to_eeprom);
else else
save_to_eeprom(); save_to_eeprom();
} }

View file

@ -359,7 +359,7 @@ TABS.onboard_logging.initialize = function (callback) {
mark_saving_dialog_done(); mark_saving_dialog_done();
} }
} else { } else {
MspHelper.dataflashRead(nextAddress, onChunkRead); mspHelper.dataflashRead(nextAddress, onChunkRead);
} }
}; };
@ -370,12 +370,12 @@ TABS.onboard_logging.initialize = function (callback) {
} }
} else { } else {
// There was an error with the received block (address didn't match the one we asked for), retry // 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 // 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) // Give the window a callback it can use to send the channels (otherwise it can't see those objects)
createdWindow.contentWindow.setRawRx = function(channels) { createdWindow.contentWindow.setRawRx = function(channels) {
if (CONFIGURATOR.connectionValid && GUI.active_tab != 'cli') { if (CONFIGURATOR.connectionValid && GUI.active_tab != 'cli') {
MspHelper.setRawRx(channels); mspHelper.setRawRx(channels);
return true; return true;
} else { } else {
return false; return false;

View file

@ -141,10 +141,10 @@ TABS.servos.initialize = function (callback) {
// //
// send data to FC // send data to FC
// //
MspHelper.sendServoConfigurations(send_servo_mixer_rules); mspHelper.sendServoConfigurations(send_servo_mixer_rules);
function send_servo_mixer_rules() { function send_servo_mixer_rules() {
MspHelper.sendServoConfigurations(save_to_eeprom); mspHelper.sendServoConfigurations(save_to_eeprom);
} }
function save_to_eeprom() { function save_to_eeprom() {