Skip to content

Commit 339fb24

Browse files
committed
virtual gnss does not need auto config
1 parent c4a4f49 commit 339fb24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/js/tabs/gps.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ gps.initialize = async function (callback) {
156156

157157
const ubloxSelected = FC.GPS_CONFIG.provider === gpsProtocols.indexOf("UBLOX");
158158
const mspSelected = FC.GPS_CONFIG.provider === gpsProtocols.indexOf("MSP");
159-
const virtualSelected = FC.GPS_CONFIG.provider === gpsProtocols.indexOf("VIRTUAL");
160159

161160
const enableGalileoVisible = checked && ubloxSelected;
162161
gpsUbloxGalileoGroup.toggle(enableGalileoVisible);
@@ -167,7 +166,7 @@ gps.initialize = async function (callback) {
167166
gpsAutoBaudGroup.toggle(
168167
(ubloxSelected || mspSelected) && semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_46),
169168
);
170-
gpsAutoConfigGroup.toggle(ubloxSelected || mspSelected || virtualSelected);
169+
gpsAutoConfigGroup.toggle(ubloxSelected);
171170
})
172171
.prop("checked", FC.GPS_CONFIG.auto_config === 1)
173172
.trigger("change");

0 commit comments

Comments
 (0)