Skip to content

Commit

Permalink
Add missing compile guard
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC committed Apr 29, 2023
1 parent 349a214 commit ccb0b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Firmware/RTK_Surveyor/menuEthernet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ void menuEthernet()

void ethernetRestart()
{
#ifdef COMPILE_ETHERNET
//Reset online.ethernetStatus so beginEthernet will call Ethernet.begin to use the new settings
online.ethernetStatus = ETH_NOT_STARTED;

Expand All @@ -703,4 +704,5 @@ void ethernetRestart()
online.ethernetNTPServer = false;

//NTRIP?
#endif //COMPILE_ETHERNET
}

0 comments on commit ccb0b5a

Please sign in to comment.