Skip to content

Commit a5e396b

Browse files
committed
Change ubxConstellation setting string to constellation - for EVK
1 parent 0f4964b commit a5e396b

File tree

1 file changed

+9
-23
lines changed
  • Firmware/RTK_Everywhere/AP-Config/src

1 file changed

+9
-23
lines changed

Firmware/RTK_Everywhere/AP-Config/src/main.js

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -862,30 +862,16 @@ function saveConfig() {
862862
}
863863

864864
function checkConstellations() {
865-
if ((platformPrefix == "EVK") || (platformPrefix == "Facet v2")) {
866-
if ((ge("ubxConstellation_GPS").checked == false)
867-
&& (ge("ubxConstellation_Galileo").checked == false)
868-
&& (ge("ubxConstellation_BeiDou").checked == false)
869-
&& (ge("ubxConstellation_GLONASS").checked == false)) {
870-
ge("collapseGNSSConfig").classList.add('show');
871-
showError('gnssConstellations', "Please choose one constellation");
872-
errorCount++;
873-
}
874-
else
875-
clearError("gnssConstellations");
876-
}
877-
if (platformPrefix == "Torch") {
878-
if ((ge("constellation_GPS").checked == false)
879-
&& (ge("constellation_Galileo").checked == false)
880-
&& (ge("constellation_BeiDou").checked == false)
881-
&& (ge("constellation_GLONASS").checked == false)) {
882-
ge("collapseGNSSConfig").classList.add('show');
883-
showError('gnssConstellations', "Please choose one constellation");
884-
errorCount++;
885-
}
886-
else
887-
clearError("gnssConstellations");
865+
if ((ge("constellation_GPS").checked == false)
866+
&& (ge("constellation_Galileo").checked == false)
867+
&& (ge("constellation_BeiDou").checked == false)
868+
&& (ge("constellation_GLONASS").checked == false)) {
869+
ge("collapseGNSSConfig").classList.add('show');
870+
showError('gnssConstellations', "Please choose one constellation");
871+
errorCount++;
888872
}
873+
else
874+
clearError("gnssConstellations");
889875
}
890876

891877
function checkBitMapValue(id, min, max, bitMap, errorText, collapseID) {

0 commit comments

Comments
 (0)