Skip to content

Commit ef4c95e

Browse files
committed
Make compile guards work
1 parent 16259d1 commit ef4c95e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ void discardUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET n
115115
void otaAutoUpdate() {}
116116
void otaUpdateStop() {}
117117
void otaVerifyTables() {}
118+
void otaUpdate() {}
118119

119120
#endif // COMPILE_OTA_AUTO
120121

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ static const uint8_t ppIpToken[16] = {POINTPERFECT_IP_TOKEN}; // Toke
2121
static const uint8_t ppLbandIpToken[16] = {POINTPERFECT_LBAND_IP_TOKEN}; // Token in HEX form
2222

2323
#ifdef COMPILE_NETWORK
24-
MqttClient *menuppMqttClient;
2524
static NetPriority_t pointperfectPriority = NETWORK_OFFLINE;
25+
MqttClient *menuppMqttClient;
2626
#endif // COMPILE_NETWORK
2727

2828
//----------------------------------------
@@ -1332,6 +1332,7 @@ void updateProvisioning()
13321332
provisioningSetState(PROVISIONING_NOT_STARTED);
13331333
}
13341334
// Wait until the network is available
1335+
#ifdef COMPILE_NETWORK
13351336
else if (networkIsConnected(&pointperfectPriority))
13361337
{
13371338
if (settings.debugPpCertificate)
@@ -1340,6 +1341,8 @@ void updateProvisioning()
13401341
// Go get latest keys
13411342
provisioningSetState(PROVISIONING_STARTING);
13421343
}
1344+
#endif // COMPILE_NETWORK
1345+
13431346
// TODO If we just booted, show keys remaining regardless of provisioning state machine
13441347
// provisioningSetState(PROVISIONING_KEYS_REMAINING);
13451348
}

0 commit comments

Comments
 (0)