mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
Fix galileo and home point once as per review
This commit is contained in:
parent
a656dc2f5b
commit
77dfd8eaa8
3 changed files with 10 additions and 10 deletions
|
@ -425,8 +425,8 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
GPS_CONFIG.auto_baud = data.readU8();
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
|
||||
GPS_CONFIG.home_point_once = data.readU8() !== 0;
|
||||
GPS_CONFIG.ublox_use_galileo = data.readU8() !== 0;
|
||||
GPS_CONFIG.home_point_once = data.readU8();
|
||||
GPS_CONFIG.ublox_use_galileo = data.readU8();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1700,8 +1700,8 @@ MspHelper.prototype.crunch = function(code) {
|
|||
.push8(GPS_CONFIG.auto_baud);
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
|
||||
buffer.push8(GPS_CONFIG.home_point_once ? 1 : 0)
|
||||
.push8(GPS_CONFIG.ublox_use_galileo ? 1 : 0);
|
||||
buffer.push8(GPS_CONFIG.home_point_once)
|
||||
.push8(GPS_CONFIG.ublox_use_galileo);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue