Skip to content

Commit fbb1805

Browse files
committed
Fix COMPILE_NETWORK
Compilation was failing if ethernet/wifi was disabled for compilation
1 parent 57b0f58 commit fbb1805

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

.github/workflows/compile-rtk-everywhere.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
- name: Get Known Libraries
7272
run: arduino-cli lib install
73-
ArduinoJson@6.19.4
73+
ArduinoJson@7.0.4
7474
7575
7676
"ESP32-OTA-Pull"@1.0.0

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void ntpServerStop() {}
3030

3131
#endif // COMPILE_ETHERNET
3232

33-
#if !COMPILE_NETWORK
33+
#ifndef COMPILE_NETWORK
3434

3535
//----------------------------------------
3636
// Network layer
@@ -42,6 +42,9 @@ void networkVerifyTables() {}
4242
void networkStop(uint8_t networkType) {}
4343
NETWORK_DATA * networkGetUserNetwork(NETWORK_USER user){return nullptr;}
4444
void networkUserClose(uint8_t user) {}
45+
uint8_t networkGetActiveType() {
46+
return (0);
47+
}
4548

4649
//----------------------------------------
4750
// NTRIP client

Firmware/RTK_Everywhere/Network.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Network.ino
137137
* private SNIP NTRIP caster
138138
------------------------------------------------------------------------------*/
139139

140-
#if COMPILE_NETWORK
140+
#ifdef COMPILE_NETWORK
141141

142142
//----------------------------------------
143143
// Constants

Firmware/RTK_Everywhere/NtripClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ NtripClient.ino
117117
118118
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
119119

120-
#if COMPILE_NETWORK
120+
#ifdef COMPILE_NETWORK
121121

122122
//----------------------------------------
123123
// Constants

Firmware/RTK_Everywhere/NtripServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ NtripServer.ino
127127
128128
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
129129

130-
#if COMPILE_NETWORK
130+
#ifdef COMPILE_NETWORK
131131

132132
//----------------------------------------
133133
// Constants

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
#define COMPILE_BQ40Z50 // Comment out to remove BQ40Z50 functionality
4040

4141
#if defined(COMPILE_WIFI) || defined(COMPILE_ETHERNET)
42-
#define COMPILE_NETWORK true
43-
#else // COMPILE_WIFI || COMPILE_ETHERNET
44-
#define COMPILE_NETWORK false
42+
#define COMPILE_NETWORK
4543
#endif // COMPILE_WIFI || COMPILE_ETHERNET
4644

4745
// Always define ENABLE_DEVELOPER to enable its use in conditional statements

Firmware/RTK_Everywhere/TcpClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ TcpClient.ino
115115
* private SNIP NTRIP caster
116116
*/
117117

118-
#if COMPILE_NETWORK
118+
#ifdef COMPILE_NETWORK
119119

120120
//----------------------------------------
121121
// Constants

Firmware/RTK_Everywhere/UdpServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ UdpServer.ino
5959
3. Verify that the displayed coordinates, fix tpe etc. are valid
6060
*/
6161

62-
#if COMPILE_NETWORK
62+
#ifdef COMPILE_NETWORK
6363

6464
//----------------------------------------
6565
// Constants

Firmware/RTK_Everywhere/menuMain.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void menuMain()
210210
systemPrintln("6) **WiFi Not Compiled**");
211211
#endif // COMPILE_WIFI
212212

213-
#if COMPILE_NETWORK
213+
#ifdef COMPILE_NETWORK
214214
systemPrintln("7) Configure TCP/UDP");
215215
#else // COMPILE_NETWORK
216216
systemPrintln("7) **TCP/UDP Not Compiled**");

0 commit comments

Comments
 (0)