Skip to content

Commit 33f92f2

Browse files
committed
Add firmware mode periodic display PD_FIRMWARE_MODE
1 parent 2505379 commit 33f92f2

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Firmware/RTK_Everywhere/System.ino

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,16 @@ void printReports()
414414
if (bluetoothCommandIsConnected() == true)
415415
return;
416416

417+
if (inMainMenu)
418+
return;
419+
420+
// Periodically display the firmware mode
421+
if (PERIODIC_DISPLAY(PD_FIRMWARE_MODE))
422+
{
423+
PERIODIC_CLEAR(PD_FIRMWARE_MODE);
424+
systemPrintf("Firmware mode: %s\r\n", stateToRtkMode(systemState));
425+
}
426+
417427
// Periodically print the position
418428
if (settings.enablePrintPosition && ((millis() - lastPrintPosition) > 15000))
419429
{

Firmware/RTK_Everywhere/menuSystem.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,9 @@ void menuPeriodicPrint()
12241224
systemPrint("27) RTK correction source: ");
12251225
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_CORRECTION_SOURCE) ? "Enabled" : "Disabled");
12261226

1227+
systemPrint("28) Firmware mode: ");
1228+
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_FIRMWARE_MODE) ? "Enabled" : "Disabled");
1229+
12271230
systemPrintln("------ Clients -----");
12281231
systemPrint("40) NTP server data: ");
12291232
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_NTP_SERVER_DATA) ? "Enabled" : "Disabled");
@@ -1356,6 +1359,8 @@ void menuPeriodicPrint()
13561359
settings.enablePrintStates ^= 1;
13571360
else if (incoming == 27)
13581361
PERIODIC_TOGGLE(PD_CORRECTION_SOURCE);
1362+
else if (incoming == 28)
1363+
PERIODIC_TOGGLE(PD_FIRMWARE_MODE);
13591364

13601365
else if (incoming == 40)
13611366
PERIODIC_TOGGLE(PD_NTP_SERVER_DATA);

Firmware/RTK_Everywhere/settings.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ enum PeriodDisplayValues
372372
PD_WEB_SERVER_STATE, // 39
373373

374374
PD_OTA_STATE, // 40
375+
376+
PD_FIRMWARE_MODE, // 41
375377
// Add new values before this line
376378
};
377379

0 commit comments

Comments
 (0)