Skip to content

Commit 9480089

Browse files
committed
Format ifdefs
1 parent 41da2e9 commit 9480089

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

Firmware/RTK_Surveyor/Bluetooth.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Bluetooth States:
2727
// Locals - compiled out
2828
//----------------------------------------
2929

30-
#ifdef COMPILE_BT
30+
#ifdef COMPILE_BT
3131
BTSerialInterface *bluetoothSerial;
3232
static volatile byte bluetoothState = BT_OFF;
3333

Firmware/RTK_Surveyor/Display.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,7 @@ const uint8_t * getMacAddress()
25102510
{
25112511
static const uint8_t zero[6] = {0, 0, 0, 0, 0, 0};
25122512

2513-
#ifdef COMPILE_BT
2513+
#ifdef COMPILE_BT
25142514
if (bluetoothState != BT_OFF)
25152515
return btMACAddress;
25162516
#ifdef COMPILE_WIFI

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// Constants - compiled out
3636
//----------------------------------------
3737

38-
#ifdef COMPILE_WIFI
38+
#ifdef COMPILE_WIFI
3939

4040
//Size of the credentials buffer in bytes
4141
static const int CREDENTIALS_BUFFER_SIZE = 512;
@@ -246,7 +246,7 @@ void ntripClientSetState(byte newState)
246246

247247
void ntripClientStart()
248248
{
249-
#ifdef COMPILE_WIFI
249+
#ifdef COMPILE_WIFI
250250
//Stop NTRIP client and WiFi
251251
ntripClientStop(true); //Do not allocate new wifiClient
252252

@@ -274,7 +274,7 @@ void ntripClientStart()
274274
//Stop the NTRIP client
275275
void ntripClientStop(bool done)
276276
{
277-
#ifdef COMPILE_WIFI
277+
#ifdef COMPILE_WIFI
278278
if (ntripClient)
279279
{
280280
//Break the NTRIP client connection if necessary
@@ -309,7 +309,7 @@ void ntripClientStop(bool done)
309309
//Stop task if the connection has dropped or if we receive no data for maxTimeBeforeHangup_ms
310310
void ntripClientUpdate()
311311
{
312-
#ifdef COMPILE_WIFI
312+
#ifdef COMPILE_WIFI
313313
//Periodically display the NTRIP client state
314314
if (settings.enablePrintNtripClientState && ((millis() - lastNtripClientState) > 15000))
315315
{
@@ -514,7 +514,7 @@ void ntripClientUpdate()
514514

515515
void pushGPGGA(NMEA_GGA_data_t *nmeaData)
516516
{
517-
#ifdef COMPILE_WIFI
517+
#ifdef COMPILE_WIFI
518518
//Provide the caster with our current position as needed
519519
if (ntripClient->connected() == true && settings.ntripClient_TransmitGGA == true)
520520
{

Firmware/RTK_Surveyor/NtripServer.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
// Constants - compiled out
5151
//----------------------------------------
5252

53-
#ifdef COMPILE_WIFI
53+
#ifdef COMPILE_WIFI
5454

5555
//Give up connecting after this number of attempts
5656
//Connection attempts are throttled to increase the time between attempts
@@ -221,7 +221,7 @@ void ntripServerSetState(byte newState)
221221
//This function gets called as each RTCM byte comes in
222222
void ntripServerProcessRTCM(uint8_t incoming)
223223
{
224-
#ifdef COMPILE_WIFI
224+
#ifdef COMPILE_WIFI
225225

226226
if (ntripServerState == NTRIP_SERVER_CASTING)
227227
{
@@ -277,7 +277,7 @@ void ntripServerProcessRTCM(uint8_t incoming)
277277
//Start the NTRIP server
278278
void ntripServerStart()
279279
{
280-
#ifdef COMPILE_WIFI
280+
#ifdef COMPILE_WIFI
281281
//Stop NTRIP server and WiFi
282282
ntripServerStop(true); //Don't allocate new wifiClient
283283

@@ -303,7 +303,7 @@ void ntripServerStart()
303303
//Stop the NTRIP server
304304
void ntripServerStop(bool wifiClientAllocated)
305305
{
306-
#ifdef COMPILE_WIFI
306+
#ifdef COMPILE_WIFI
307307
if (ntripServer)
308308
{
309309
//Break the NTRIP server connection if necessary
@@ -338,7 +338,7 @@ void ntripServerStop(bool wifiClientAllocated)
338338
//Update the NTRIP server state machine
339339
void ntripServerUpdate()
340340
{
341-
#ifdef COMPILE_WIFI
341+
#ifdef COMPILE_WIFI
342342
//Periodically display the NTRIP server state
343343
if (settings.enablePrintNtripServerState && ((millis() - ntripServerStateLastDisplayed) > 15000))
344344
{

Firmware/RTK_Surveyor/States.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ void updateSystemState()
653653
}
654654
break;
655655

656-
#ifdef COMPILE_L_BAND
656+
#ifdef COMPILE_L_BAND
657657
case (STATE_KEYS_STARTED):
658658
{
659659
if (rtcWaitTime == 0) rtcWaitTime = millis();
@@ -1036,7 +1036,7 @@ void changeState(SystemState newState)
10361036
case (STATE_PROFILE):
10371037
Serial.print("State: Profile");
10381038
break;
1039-
#ifdef COMPILE_L_BAND
1039+
#ifdef COMPILE_L_BAND
10401040
case (STATE_KEYS_STARTED):
10411041
Serial.print("State: Keys Started ");
10421042
break;

Firmware/RTK_Surveyor/WiFi.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static const int WIFI_IP_ADDRESS_DISPLAY_INTERVAL = 12 * 1000; //Milliseconds
5757
// Locals - compiled out
5858
//----------------------------------------
5959

60-
#ifdef COMPILE_WIFI
60+
#ifdef COMPILE_WIFI
6161

6262
//WiFi Timer usage:
6363
// * Measure connection time to access point
@@ -148,7 +148,7 @@ void wifiStartAP()
148148
{
149149
//When testing, operate on local WiFi instead of AP
150150
//#define LOCAL_WIFI_TESTING 1
151-
#ifdef LOCAL_WIFI_TESTING
151+
#ifdef LOCAL_WIFI_TESTING
152152
//Connect to local router
153153
#define WIFI_SSID "TRex"
154154
#define WIFI_PASSWORD "parachutes"
@@ -203,7 +203,7 @@ void wifiStartAP()
203203
//Determine if the WiFi connection has timed out
204204
bool wifiConnectionTimeout()
205205
{
206-
#ifdef COMPILE_WIFI
206+
#ifdef COMPILE_WIFI
207207
if ((millis() - wifiTimer) <= WIFI_CONNECTION_TIMEOUT)
208208
return false;
209209
Serial.println("WiFi connection timeout!");
@@ -214,7 +214,7 @@ bool wifiConnectionTimeout()
214214
//Send NMEA data to the NMEA clients
215215
void wifiNmeaData(uint8_t * data, uint16_t length)
216216
{
217-
#ifdef COMPILE_WIFI
217+
#ifdef COMPILE_WIFI
218218
static IPAddress ipAddress[WIFI_MAX_NMEA_CLIENTS];
219219
int index;
220220
static uint32_t lastNmeaConnectAttempt;
@@ -377,7 +377,7 @@ void wifiStart(char* ssid, char* pw)
377377
//If ESP NOW is active, leave WiFi on enough for ESP NOW
378378
void wifiStop()
379379
{
380-
#ifdef COMPILE_WIFI
380+
#ifdef COMPILE_WIFI
381381
stopWebServer();
382382

383383
if (wifiState == WIFI_OFF)
@@ -441,7 +441,7 @@ void wifiStop()
441441
void wifiUpdate()
442442
{
443443

444-
#ifdef COMPILE_WIFI
444+
#ifdef COMPILE_WIFI
445445
//Periodically display the WiFi state
446446
if (settings.enablePrintWifiState && ((millis() - lastWifiState) > 15000))
447447
{

Firmware/RTK_Surveyor/menuPP.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#ifdef COMPILE_L_BAND
1+
#ifdef COMPILE_L_BAND
22

33
//----------------------------------------
44
// Locals - compiled out
@@ -934,7 +934,7 @@ void beginLBand()
934934
//Download keys
935935
void menuPointPerfect()
936936
{
937-
#ifdef COMPILE_L_BAND
937+
#ifdef COMPILE_L_BAND
938938
int menuTimeoutExtended = 30; //Increase time needed for complex data entry (mount point ID, caster credentials, etc).
939939

940940
while (1)
@@ -1078,7 +1078,7 @@ void menuPointPerfect()
10781078
//If a certain amount of time has elapsed between last decryption, turn off L-Band icon
10791079
void updateLBand()
10801080
{
1081-
#ifdef COMPILE_L_BAND
1081+
#ifdef COMPILE_L_BAND
10821082
if (online.lbandCorrections == true)
10831083
{
10841084
i2cLBand.checkUblox(); // Check for the arrival of new PMP data and process it.

0 commit comments

Comments
 (0)