Skip to content

Commit

Permalink
Merge pull request #594 from LeeLeahy2/ntp-menu
Browse files Browse the repository at this point in the history
Add N to serial system menu to switch to the NTP server
  • Loading branch information
nseidle authored Aug 11, 2023
2 parents c43c5c5 + 8b5a612 commit bf1361c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Firmware/RTK_Surveyor/menuSystem.ino
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ void menuSystem()

// Support mode switching
systemPrintln("B) Switch to Base mode");
if (HAS_ETHERNET)
systemPrintln("N) Switch to NTP Server mode");
systemPrintln("R) Switch to Rover mode");
systemPrintln("W) Switch to WiFi Config mode");
systemPrintln("S) Shut down");
Expand Down Expand Up @@ -256,6 +258,11 @@ void menuSystem()
forceSystemStateUpdate = true; // Imediately go to this new state
changeState(STATE_BASE_NOT_STARTED);
}
else if ((incoming == 'N') && HAS_ETHERNET)
{
forceSystemStateUpdate = true; // Imediately go to this new state
changeState(STATE_NTPSERVER_NOT_STARTED);
}
else if (incoming == 'R')
{
forceSystemStateUpdate = true; // Imediately go to this new state
Expand Down

0 comments on commit bf1361c

Please sign in to comment.