Skip to content

Commit 74d6fc6

Browse files
committed
Whitespace change
1 parent e83b47f commit 74d6fc6

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
// To reduce compile times, various parts of the firmware can be disabled/removed if they are not
2323
// needed during development
24-
#define COMPILE_BT // Comment out to remove Bluetooth functionality
25-
#define COMPILE_WIFI // Comment out to remove WiFi functionality
26-
#define COMPILE_ETHERNET // Comment out to remove Ethernet (W5500) support
24+
// #define COMPILE_BT // Comment out to remove Bluetooth functionality
25+
// #define COMPILE_WIFI // Comment out to remove WiFi functionality
26+
// #define COMPILE_ETHERNET // Comment out to remove Ethernet (W5500) support
2727

2828
#ifdef COMPILE_WIFI
2929
#define COMPILE_AP // Requires WiFi. Comment out to remove Access Point functionality
@@ -81,7 +81,7 @@
8181
#include <ESPmDNS.h> //Built-in.
8282
#include <HTTPClient.h> //Built-in. Needed for ThingStream API for ZTP
8383
#include <MqttClient.h> //http://librarymanager/All#ArduinoMqttClient by Arduino v0.1.8
84-
#include <WiFi.h> //Built-in.
84+
#include <WiFi.h> //Built-in.
8585
#include <WiFiClientSecure.h> //Built-in.
8686
#include <WiFiMulti.h> //Built-in.
8787
#endif // COMPILE_WIFI
@@ -276,9 +276,11 @@ char logFileName[sizeof("SFE_Reference_Station_230101_120101.ubx_plusExtraSpace"
276276
// 1 2 3 4 5 6 7 8 9 0 1 2
277277
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
278278
#define OTA_FIRMWARE_JSON_URL \
279-
"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Everywhere_Firmware_Binaries/main/RTK-Everywhere-Firmware.json"
279+
"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Everywhere_Firmware_Binaries/main/" \
280+
"RTK-Everywhere-Firmware.json"
280281
#define OTA_RC_FIRMWARE_JSON_URL \
281-
"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Everywhere_Firmware_Binaries/main/RTK-Everywhere-RC-Firmware.json"
282+
"https://raw.githubusercontent.com/sparkfun/SparkFun_RTK_Everywhere_Firmware_Binaries/main/" \
283+
"RTK-Everywhere-RC-Firmware.json"
282284
char otaFirmwareJsonUrl[OTA_FIRMWARE_JSON_URL_LENGTH];
283285
char otaRcFirmwareJsonUrl[OTA_FIRMWARE_JSON_URL_LENGTH];
284286

@@ -303,7 +305,7 @@ int wifiOriginalMaxConnectionAttempts = wifiMaxConnectionAttempts; // Modified d
303305
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
304306
#include <SparkFun_u-blox_GNSS_v3.h> //http://librarymanager/All#SparkFun_u-blox_GNSS_v3 v3.0.5
305307

306-
char neoFirmwareVersion[20]; // Output to system status menu.
308+
char neoFirmwareVersion[20]; // Output to system status menu.
307309

308310
// Use Michael's lock/unlock methods to prevent the GNSS UART task from calling checkUblox during a sendCommand and
309311
// waitForResponse. Also prevents pushRawData from being called.
@@ -386,9 +388,9 @@ int64_t ARPECEFY;
386388
int64_t ARPECEFZ;
387389
uint16_t ARPECEFH;
388390

389-
const byte haeNumberOfDecimals = 8; // Used for printing and transmitting lat/lon
390-
bool lBandForceGetKeys; // Used to allow key update from display
391-
unsigned long rtcmLastPacketReceived; //Time stamp of RTCM coming in (from BT, NTRIP, etc)
391+
const byte haeNumberOfDecimals = 8; // Used for printing and transmitting lat/lon
392+
bool lBandForceGetKeys; // Used to allow key update from display
393+
unsigned long rtcmLastPacketReceived; // Time stamp of RTCM coming in (from BT, NTRIP, etc)
392394
// Monitors the last time we received RTCM. Proctors PMP vs RTCM prioritization.
393395
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
394396

@@ -671,14 +673,15 @@ uint64_t lastLogSize;
671673
bool logIncreasing; // Goes true when log file is greater than lastLogSize or logPosition changes
672674
bool reuseLastLog; // Goes true if we have a reset due to software (rather than POR)
673675

674-
uint16_t rtcmPacketsSent; // Used to count RTCM packets sent via processRTCM()
675-
uint32_t rtcmLastPacketSent; //Time stamp of RTCM going out (to NTRIP Server, ESP-NOW, etc)
676+
uint16_t rtcmPacketsSent; // Used to count RTCM packets sent via processRTCM()
677+
uint32_t rtcmLastPacketSent; // Time stamp of RTCM going out (to NTRIP Server, ESP-NOW, etc)
676678

677679
uint32_t maxSurveyInWait_s = 60L * 15L; // Re-start survey-in after X seconds
678680

679681
uint32_t lastSetupMenuChange; // Limits how much time is spent in the setup menu
680682
uint32_t lastTestMenuChange; // Avoids exiting the test menu for at least 1 second
681-
uint8_t setupSelectedButton = 0; // In Display Setup, start displaying at this button. This is the selected (highlighted) button.
683+
uint8_t setupSelectedButton =
684+
0; // In Display Setup, start displaying at this button. This is the selected (highlighted) button.
682685
std::vector<setupButton> setupButtons; // A vector (linked list) of the setup 'butttons'
683686

684687
bool firstRoverStart; // Used to detect if the user is toggling the power button at POR to enter the test menu
@@ -739,10 +742,10 @@ unsigned long um980BaseStartTimer; // Tracks how long the base averaging mode ha
739742

740743
RtkMode_t rtkMode; // Mode of operation
741744

742-
unsigned long beepLengthMs; // Number of ms to make noise
745+
unsigned long beepLengthMs; // Number of ms to make noise
743746
unsigned long beepQuietLengthMs; // Number of ms to make reset between multiple beeps
744-
unsigned long beepNextEventMs; // Time at which to move the beeper to the next state
745-
unsigned long beepCount; // Number of beeps to do
747+
unsigned long beepNextEventMs; // Time at which to move the beeper to the next state
748+
unsigned long beepCount; // Number of beeps to do
746749

747750
unsigned long lastMqttToPpl;
748751
unsigned long lastGnssToPpl;
@@ -812,7 +815,7 @@ volatile bool deadManWalking;
812815
settings.enablePrintRtcSync = true; \
813816
settings.enablePrintBufferOverrun = true; \
814817
settings.enablePrintSDBuffers = true; \
815-
settings.periodicDisplay = (PeriodicDisplay_t)-1; \
818+
settings.periodicDisplay = (PeriodicDisplay_t) - 1; \
816819
settings.enablePrintEthernetDiag = true; \
817820
settings.debugWifiState = true; \
818821
settings.debugNetworkLayer = true; \
@@ -821,9 +824,9 @@ volatile bool deadManWalking;
821824
settings.debugNtripClientState = true; \
822825
settings.debugNtripServerRtcm = true; \
823826
settings.debugNtripServerState = true; \
824-
settings.debugPvtClient = true; \
825-
settings.debugPvtServer = true; \
826-
settings.debugPvtUdpServer = true; \
827+
settings.debugTcpClient = true; \
828+
settings.debugTcpServer = true; \
829+
settings.debugUdpServer = true; \
827830
settings.printBootTimes = true; \
828831
}
829832

@@ -1394,9 +1397,9 @@ void rtcUpdate()
13941397
{
13951398
systemPrintln("No GNSS date/time available for system RTC.");
13961399
} // End timeValid
1397-
} // End lastRTCAttempt
1398-
} // End online.gnss
1399-
} // End online.rtc
1400+
} // End lastRTCAttempt
1401+
} // End online.gnss
1402+
} // End online.rtc
14001403

14011404
// Print TP time sync information here. Trying to do it in the ISR would be a bad idea...
14021405
if (settings.enablePrintRtcSync == true)
@@ -1444,7 +1447,7 @@ void updateRadio()
14441447

14451448
if (!inMainMenu)
14461449
{
1447-
if(settings.debugEspNow == true)
1450+
if (settings.debugEspNow == true)
14481451
systemPrintf("ESPNOW transmitted %d RTCM bytes\r\n", espnowBytesSent + espnowOutgoingSpot);
14491452
}
14501453
espnowBytesSent = 0;

0 commit comments

Comments
 (0)