mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
Minor bugfixes MSPHelper.js
This commit is contained in:
parent
a5c99009c6
commit
48c1e830f3
1 changed files with 7 additions and 7 deletions
|
@ -209,7 +209,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
voltageMeter.id = data.readU8();
|
||||
voltageMeter.voltage = data.readU8() / 10.0;
|
||||
|
||||
FC.VOLTAGE_METERS.push(voltageMeter)
|
||||
FC.VOLTAGE_METERS.push(voltageMeter);
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_CURRENT_METERS:
|
||||
|
@ -854,7 +854,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
gps_baudrate: self.BAUD_RATES[data.readU8()],
|
||||
telemetry_baudrate: self.BAUD_RATES[data.readU8()],
|
||||
blackbox_baudrate: self.BAUD_RATES[data.readU8()]
|
||||
}
|
||||
};
|
||||
|
||||
FC.SERIAL_CONFIG.ports.push(serialPort);
|
||||
}
|
||||
|
@ -1573,7 +1573,7 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
code : command,
|
||||
dataView : new DataView(data.buffer, data.offset, payloadSize),
|
||||
callbacks : [],
|
||||
}
|
||||
};
|
||||
|
||||
self.process_data(currentDataHandler);
|
||||
|
||||
|
@ -1656,7 +1656,7 @@ MspHelper.prototype.crunch = function(code) {
|
|||
}
|
||||
break;
|
||||
case MSPCodes.MSP_SET_MIXER_CONFIG:
|
||||
buffer.push8(FC.MIXER_CONFIG.mixer)
|
||||
buffer.push8(FC.MIXER_CONFIG.mixer);
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_36)) {
|
||||
buffer.push8(FC.MIXER_CONFIG.reverseMotorDir);
|
||||
}
|
||||
|
@ -1824,7 +1824,7 @@ MspHelper.prototype.crunch = function(code) {
|
|||
buffer.push16(FC.BF_CONFIG.currentscale)
|
||||
.push16(FC.BF_CONFIG.currentoffset)
|
||||
.push8(FC.BF_CONFIG.currentmetertype)
|
||||
.push16(FC.BF_CONFIG.batterycapacity)
|
||||
.push16(FC.BF_CONFIG.batterycapacity);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -2001,7 +2001,7 @@ MspHelper.prototype.crunch = function(code) {
|
|||
.push16(FC.FILTER_CONFIG.dterm_notch_cutoff);
|
||||
if (semver.gte(FC.CONFIG.apiVersion, "1.21.0")) {
|
||||
buffer.push16(FC.FILTER_CONFIG.gyro_notch2_hz)
|
||||
.push16(FC.FILTER_CONFIG.gyro_notch2_cutoff)
|
||||
.push16(FC.FILTER_CONFIG.gyro_notch2_cutoff);
|
||||
}
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_36)) {
|
||||
buffer.push8(FC.FILTER_CONFIG.dterm_lowpass_type);
|
||||
|
@ -2231,7 +2231,7 @@ MspHelper.prototype.crunch = function(code) {
|
|||
}
|
||||
|
||||
if (FC.VTXTABLE_BAND.vtxtable_band_letter != '') {
|
||||
buffer.push8(FC.VTXTABLE_BAND.vtxtable_band_letter.charCodeAt(0))
|
||||
buffer.push8(FC.VTXTABLE_BAND.vtxtable_band_letter.charCodeAt(0));
|
||||
} else {
|
||||
buffer.push8(' '.charCodeAt(0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue