Skip to content

Commit

Permalink
virtual gnss does not need auto config
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 15, 2025
1 parent c4a4f49 commit 339fb24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ gps.initialize = async function (callback) {

const ubloxSelected = FC.GPS_CONFIG.provider === gpsProtocols.indexOf("UBLOX");
const mspSelected = FC.GPS_CONFIG.provider === gpsProtocols.indexOf("MSP");
const virtualSelected = FC.GPS_CONFIG.provider === gpsProtocols.indexOf("VIRTUAL");

const enableGalileoVisible = checked && ubloxSelected;
gpsUbloxGalileoGroup.toggle(enableGalileoVisible);
Expand All @@ -167,7 +166,7 @@ gps.initialize = async function (callback) {
gpsAutoBaudGroup.toggle(
(ubloxSelected || mspSelected) && semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_46),
);
gpsAutoConfigGroup.toggle(ubloxSelected || mspSelected || virtualSelected);
gpsAutoConfigGroup.toggle(ubloxSelected);
})
.prop("checked", FC.GPS_CONFIG.auto_config === 1)
.trigger("change");
Expand Down

0 comments on commit 339fb24

Please sign in to comment.