Skip to content

Commit 17d74dd

Browse files
committed
Build with COMPILE_NTP commented out
1 parent 0005667 commit 17d74dd

File tree

5 files changed

+27
-16
lines changed

5 files changed

+27
-16
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,18 @@
33
mode (ENABLE_DEVELOPER defined).
44
*/
55

6-
#ifndef COMPILE_ETHERNET
7-
86
//----------------------------------------
97
// Ethernet
108
//----------------------------------------
119

10+
#ifndef COMPILE_ETHERNET
11+
1212
bool ethernetLinkUp() {return false;}
1313
void menuEthernet() {systemPrintln("**Ethernet not compiled**");}
1414
void ethernetUpdate() {}
1515

1616
bool ntpLogIncreasing = false;
1717

18-
//----------------------------------------
19-
// NTP: Network Time Protocol
20-
//----------------------------------------
21-
22-
void menuNTP() {systemPrint("**NTP not compiled**");}
23-
void ntpServerBegin() {}
24-
void ntpServerUpdate() {}
25-
void ntpValidateTables() {}
26-
void ntpServerStop() {}
27-
2818
#endif // COMPILE_ETHERNET
2919

3020
//----------------------------------------
@@ -107,6 +97,18 @@ void mqttClientValidateTables() {}
10797

10898
#endif // COMPILE_MQTT_CLIENT
10999

100+
//----------------------------------------
101+
// NTP: Network Time Protocol
102+
//----------------------------------------
103+
104+
#ifndef COMPILE_NTP
105+
void menuNTP() {systemPrint("**NTP not compiled**");}
106+
void ntpServerBegin() {}
107+
void ntpServerUpdate() {}
108+
void ntpValidateTables() {}
109+
void ntpServerStop() {}
110+
#endif // COMPILE_NTP
111+
110112
//----------------------------------------
111113
// NTRIP client
112114
//----------------------------------------

Firmware/RTK_Everywhere/NTP.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ NTP.ino
5151
5252
------------------------------------------------------------------------------*/
5353

54-
#ifdef COMPILE_ETHERNET
54+
#ifdef COMPILE_NTP
5555

5656
//----------------------------------------
5757
// Constants
@@ -983,4 +983,4 @@ void ntpValidateTables()
983983
reportFatalError("Fix ntpServerStateNameEntries to match NTP_STATE");
984984
}
985985

986-
#endif // COMPILE_ETHERNET
986+
#endif // COMPILE_NTP

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
#define COMPILE_AUTHENTICATION // Comment out to disable MFi authentication
9494
#endif
9595

96+
#ifdef COMPILE_ETHERNET
97+
#define COMPILE_NTP // Comment out to disable NTP functionality
98+
#endif // COMPILE_ETHERNET
99+
96100
#ifdef COMPILE_WIFI
97101
#define COMPILE_AP // Requires WiFi. Comment out to remove Access Point functionality
98102
#define COMPILE_ESPNOW // Requires WiFi. Comment out to remove ESP-NOW functionality.

Firmware/RTK_Everywhere/States.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ void stateUpdate()
564564
}
565565
break;
566566

567-
#ifdef COMPILE_ETHERNET
567+
#ifdef COMPILE_NTP
568568
case (STATE_NTPSERVER_NOT_STARTED): {
569569
RTK_MODE(RTK_MODE_NTP);
570570
firstRoverStart = false; // If NTP is starting, no test menu, normal button use.
@@ -627,7 +627,7 @@ void stateUpdate()
627627
}
628628
break;
629629

630-
#endif // COMPILE_ETHERNET
630+
#endif // COMPILE_NTP
631631

632632
case (STATE_SHUTDOWN): {
633633
forceDisplayUpdate = true;

Firmware/RTK_Everywhere/check.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ sed -i 's|#define COMPILE_MOSAICX5|//#define COMPILE_MOSAICX5|' RTK_Everywhere.i
6767
make
6868
git reset --hard --quiet HEAD
6969

70+
# NTP Server
71+
sed -i 's|#define COMPILE_NTP|//#define COMPILE_NTP|' RTK_Everywhere.ino
72+
make
73+
git reset --hard --quiet HEAD
74+
7075
# NTRIP Client
7176
sed -i 's|#define COMPILE_NTRIP_CLIENT|//#define COMPILE_NTRIP_CLIENT|' RTK_Everywhere.ino
7277
make

0 commit comments

Comments
 (0)