Skip to content

Commit b065a8b

Browse files
committed
Whitespace
1 parent ae5b70d commit b065a8b

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ Tasks.ino
3838
// Macros
3939
//----------------------------------------
4040

41-
#define WRAP_OFFSET(offset, increment, arraySize) \
42-
{ \
43-
offset += increment; \
44-
if (offset >= arraySize) \
45-
offset -= arraySize; \
41+
#define WRAP_OFFSET(offset, increment, arraySize) \
42+
{ \
43+
offset += increment; \
44+
if (offset >= arraySize) \
45+
offset -= arraySize; \
4646
}
4747

4848
//----------------------------------------
@@ -62,7 +62,12 @@ enum RingBufferConsumers
6262
};
6363

6464
const char *const ringBufferConsumer[] = {
65-
"Bluetooth", "TCP Client", "TCP Server", "SD Card", "UDP Server", "USB Serial",
65+
"Bluetooth",
66+
"TCP Client",
67+
"TCP Server",
68+
"SD Card",
69+
"UDP Server",
70+
"USB Serial",
6671
};
6772

6873
const int ringBufferConsumerEntries = sizeof(ringBufferConsumer) / sizeof(ringBufferConsumer[0]);
@@ -76,13 +81,21 @@ const int ringBufferConsumerEntries = sizeof(ringBufferConsumer) / sizeof(ringBu
7681

7782
// List the parsers to be included
7883
SEMP_PARSE_ROUTINE const parserTable[] = {
79-
sempNmeaPreamble, sempUnicoreHashPreamble, sempRtcmPreamble, sempUbloxPreamble, sempUnicoreBinaryPreamble,
84+
sempNmeaPreamble,
85+
sempUnicoreHashPreamble,
86+
sempRtcmPreamble,
87+
sempUbloxPreamble,
88+
sempUnicoreBinaryPreamble,
8089
};
8190
const int parserCount = sizeof(parserTable) / sizeof(parserTable[0]);
8291

8392
// List the names of the parsers
8493
const char *const parserNames[] = {
85-
"NMEA", "Unicore Hash_(#)", "RTCM", "u-Blox", "Unicore Binary",
94+
"NMEA",
95+
"Unicore Hash_(#)",
96+
"RTCM",
97+
"u-Blox",
98+
"Unicore Binary",
8699
};
87100
const int parserNameCount = sizeof(parserNames) / sizeof(parserNames[0]);
88101

@@ -134,7 +147,7 @@ void btReadTask(void *e)
134147

135148
unsigned long btLastByteReceived = 0; // Track when the last BT transmission was received.
136149
const long btMinEscapeTime =
137-
2000; // Bluetooth serial traffic must stop this amount before an escape char is recognized
150+
2000; // Bluetooth serial traffic must stop this amount before an escape char is recognized
138151
uint8_t btEscapeCharsReceived = 0; // Used to enter remote command mode
139152

140153
uint8_t btAppCommandCharsReceived = 0; // Used to enter app command mode
@@ -1265,7 +1278,7 @@ void handleGnssDataTask(void *e)
12651278

12661279
// Block logging during Web Config to avoid SD collisions
12671280
// See issue: https://github.com/sparkfun/SparkFun_RTK_Everywhere_Firmware/issues/693
1268-
if(webServerIsRunning() == true)
1281+
if (webServerIsRunning() == true)
12691282
connected = false;
12701283

12711284
// If user wants to log, record to SD
@@ -1878,7 +1891,8 @@ void buttonCheckTask(void *e)
18781891
{
18791892
switch (systemState)
18801893
{
1881-
case STATE_DISPLAY_SETUP: {
1894+
case STATE_DISPLAY_SETUP:
1895+
{
18821896
// If we are displaying the setup menu, a single tap will cycle through possible system states - see
18831897
// above Exit into new system state on double tap Exit display setup into previous state after ~10s
18841898
// - see updateSystemState()

0 commit comments

Comments
 (0)