Skip to content

Commit b4aca7c

Browse files
committed
Fix duplicate form field
1 parent 157b9d5 commit b4aca7c

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,29 +1348,17 @@
13481348
<span class="icon-info-circle text-primary ms-2"></span>
13491349
</span>
13501350
</div>
1351-
1352-
<div class="form-check mt-3">
1353-
<label class="form-check-label" for="enableGnssToUsbSerial">Enable GNSS output over
1354-
USB</label>
1355-
<input class="form-check-input" type="checkbox" value="" id="enableGnssToUsbSerial">
1356-
<span class="tt" data-bs-placement="right"
1357-
title="Output GNSS serial data (ie, NMEA and RTCM) over the USB port instead of status messages. Default: False">
1358-
<span class="icon-info-circle text-primary ms-2"></span>
1359-
</span>
1360-
</div>
13611351
</div>
13621352

1363-
<!-- For devices that don't have an external port, present the USB output option only-->
1364-
<div id="noExternalPortOptions">
1365-
<div class="form-check mt-3">
1366-
<label class="form-check-label" for="enableGnssToUsbSerial">Enable GNSS output over
1367-
USB</label>
1368-
<input class="form-check-input" type="checkbox" value="" id="enableGnssToUsbSerial">
1369-
<span class="tt" data-bs-placement="right"
1370-
title="Output GNSS serial data (ie, NMEA and RTCM) over the USB port instead of status messages. Default: False">
1371-
<span class="icon-info-circle text-primary ms-2"></span>
1372-
</span>
1373-
</div>
1353+
<!-- Always show Enable GNSS output over USB -->
1354+
<div class="form-check mt-3">
1355+
<label class="form-check-label" for="enableGnssToUsbSerial">Enable GNSS output over
1356+
USB</label>
1357+
<input class="form-check-input" type="checkbox" value="" id="enableGnssToUsbSerial">
1358+
<span class="tt" data-bs-placement="right"
1359+
title="Output GNSS serial data (ie, NMEA and RTCM) over the USB port instead of status messages. Default: False">
1360+
<span class="icon-info-circle text-primary ms-2"></span>
1361+
</span>
13741362
</div>
13751363
</div>
13761364
</div>

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ function parseIncoming(msg) {
103103
show("ppConfig");
104104
show("ethernetConfig");
105105
show("ntpConfig");
106-
hide("portsConfig");
106+
show("portsConfig");
107+
hide("externalPortOptions");
107108
show("logToSDCard");
108109
hide("galileoHasSetting");
109110
hide("tiltConfig");
@@ -116,7 +117,7 @@ function parseIncoming(msg) {
116117
hide("ethernetConfig");
117118
hide("ntpConfig");
118119
show("portsConfig");
119-
hide("noExternalPortOptions");
120+
show("externalPortOptions");
120121
show("logToSDCard");
121122
hide("galileoHasSetting");
122123
hide("tiltConfig");
@@ -129,7 +130,7 @@ function parseIncoming(msg) {
129130
hide("ethernetConfig");
130131
hide("ntpConfig");
131132
show("portsConfig");
132-
hide("noExternalPortOptions");
133+
show("externalPortOptions");
133134
show("logToSDCard");
134135
hide("tiltConfig");
135136
hide("beeperControl");
@@ -141,9 +142,7 @@ function parseIncoming(msg) {
141142
hide("ethernetConfig");
142143
hide("ntpConfig");
143144
show("portsConfig");
144-
145145
hide("externalPortOptions");
146-
show("noExternalPortOptions");
147146

148147
hide("logToSDCard");
149148

0 commit comments

Comments
 (0)