Skip to content

Commit 80b9bf1

Browse files
committed
Fix compile guards
1 parent e96eb6c commit 80b9bf1

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Firmware/RTK_Surveyor/Developer.ino

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ void pvtUdpServerUpdate() {}
9292
void pvtUdpServerZeroTail() {}
9393
void discardPvtUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
9494

95+
//----------------------------------------
96+
// PVT server
97+
//----------------------------------------
98+
99+
int32_t pvtServerSendData(uint16_t dataHead) {return 0;}
100+
void pvtServerStop() {}
101+
void pvtServerUpdate() {}
102+
void pvtServerZeroTail() {}
103+
void pvtServerValidateTables() {}
104+
void discardPvtServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
105+
95106
#endif // COMPILE_NETWORK
96107

97108
//----------------------------------------
@@ -109,23 +120,12 @@ void stopWebServer() {}
109120
bool parseIncomingSettings() {return false;}
110121

111122
#endif // COMPILE_AP
112-
#ifndef COMPILE_WIFI
113-
114-
//----------------------------------------
115-
// PVT server
116-
//----------------------------------------
117-
118-
int32_t pvtServerSendData(uint16_t dataHead) {return 0;}
119-
void pvtServerStop() {}
120-
void pvtServerUpdate() {}
121-
void pvtServerZeroTail() {}
122-
void pvtServerValidateTables() {}
123-
void discardPvtServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
124123

125124
//----------------------------------------
126125
// WiFi
127126
//----------------------------------------
128127

128+
#ifndef COMPILE_WIFI
129129
void menuWiFi() {systemPrintln("WiFi not compiled");};
130130
bool wifiConnect(unsigned long timeout) {return false;}
131131
IPAddress wifiGetGatewayIpAddress() {return IPAddress((uint32_t)0);}

Firmware/RTK_Surveyor/PvtServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pvtServer.ino
3131
3232
*/
3333

34-
#ifdef COMPILE_NETWORK
34+
#if COMPILE_NETWORK
3535

3636
//----------------------------------------
3737
// Constants

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ const uint8_t btMaxEscapeCharacters = 3; // Number of characters needed to enter
482482
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
483483
#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_Graphic_OLED
484484

485-
#ifdef COMPILE_NETWORK
485+
#if COMPILE_NETWORK
486486
bool pvtServerRunning(); // Header
487487
bool udpServerRunning(); // Header
488488
#endif // COMPILE_NETWORK

0 commit comments

Comments
 (0)