Skip to content

Commit ab48039

Browse files
committed
Limit baud rates shown in Web Config by platform
1 parent 3ee7a75 commit ab48039

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,7 @@
13201320
<div id="radioPortChannelDropdown" class="mb-2">
13211321
<label for="radioPortBaud">Radio Port Baud Rate: </label>
13221322
<select name="radioPortBaud" id="radioPortBaud" class="form-dropdown">
1323+
<!-- These are the compatible options for ZED-F9P and mosaic -->
13231324
<option value="4800">4800</option>
13241325
<option value="9600">9600</option>
13251326
<option value="19200">19200</option>
@@ -1331,7 +1332,7 @@
13311332
<option value="921600">921600</option>
13321333
</select>
13331334
<span class="tt" data-bs-placement="right"
1334-
title="The baud rate for the RADIO port can be changed to match a user's choice of radio. Default: 57600bps">
1335+
title="The baud rate for the RADIO port can be changed to match a user's choice of radio. Default: 57600bps or 115200bps">
13351336
<span class="icon-info-circle text-primary ms-2"></span>
13361337
</span>
13371338
<br>

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ function parseIncoming(msg) {
212212
hide("ethernetConfig");
213213
hide("ntpConfig");
214214
show("portsConfig");
215+
216+
// No RADIO port on Torch
217+
// No DATA port on Torch
215218
hide("externalPortOptions");
216219

217220
hide("logToSDCard");
@@ -276,6 +279,33 @@ function parseIncoming(msg) {
276279
select.add(newOption, undefined);
277280
newOption = new Option('Flex NTRIP/RTCM', '1');
278281
select.add(newOption, undefined);
282+
283+
console.log("Change baud list");
284+
ge("radioPortBaud").options.length = 0; //Remove all from list
285+
select = ge("radioPortBaud");
286+
newOption = new Option('9600', '9600');
287+
select.add(newOption, undefined);
288+
newOption = new Option('115200', '115200');
289+
select.add(newOption, undefined);
290+
newOption = new Option('230400', '230400');
291+
select.add(newOption, undefined);
292+
newOption = new Option('460800', '460800');
293+
select.add(newOption, undefined);
294+
newOption = new Option('921600', '921600');
295+
select.add(newOption, undefined);
296+
297+
ge("dataPortBaud").options.length = 0; //Remove all from list
298+
select = ge("dataPortBaud");
299+
newOption = new Option('9600', '9600');
300+
select.add(newOption, undefined);
301+
newOption = new Option('115200', '115200');
302+
select.add(newOption, undefined);
303+
newOption = new Option('230400', '230400');
304+
select.add(newOption, undefined);
305+
newOption = new Option('460800', '460800');
306+
select.add(newOption, undefined);
307+
newOption = new Option('921600', '921600');
308+
select.add(newOption, undefined);
279309
}
280310
}
281311
else if (id.includes("gnssFirmwareVersionInt")) {

0 commit comments

Comments
 (0)