@@ -38,11 +38,11 @@ Tasks.ino
38
38
// Macros
39
39
// ----------------------------------------
40
40
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; \
46
46
}
47
47
48
48
// ----------------------------------------
@@ -62,7 +62,12 @@ enum RingBufferConsumers
62
62
};
63
63
64
64
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" ,
66
71
};
67
72
68
73
const int ringBufferConsumerEntries = sizeof (ringBufferConsumer) / sizeof (ringBufferConsumer[0 ]);
@@ -76,13 +81,21 @@ const int ringBufferConsumerEntries = sizeof(ringBufferConsumer) / sizeof(ringBu
76
81
77
82
// List the parsers to be included
78
83
SEMP_PARSE_ROUTINE const parserTable[] = {
79
- sempNmeaPreamble, sempUnicoreHashPreamble, sempRtcmPreamble, sempUbloxPreamble, sempUnicoreBinaryPreamble,
84
+ sempNmeaPreamble,
85
+ sempUnicoreHashPreamble,
86
+ sempRtcmPreamble,
87
+ sempUbloxPreamble,
88
+ sempUnicoreBinaryPreamble,
80
89
};
81
90
const int parserCount = sizeof (parserTable) / sizeof (parserTable[0 ]);
82
91
83
92
// List the names of the parsers
84
93
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" ,
86
99
};
87
100
const int parserNameCount = sizeof (parserNames) / sizeof (parserNames[0 ]);
88
101
@@ -134,7 +147,7 @@ void btReadTask(void *e)
134
147
135
148
unsigned long btLastByteReceived = 0 ; // Track when the last BT transmission was received.
136
149
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
138
151
uint8_t btEscapeCharsReceived = 0 ; // Used to enter remote command mode
139
152
140
153
uint8_t btAppCommandCharsReceived = 0 ; // Used to enter app command mode
@@ -1265,7 +1278,7 @@ void handleGnssDataTask(void *e)
1265
1278
1266
1279
// Block logging during Web Config to avoid SD collisions
1267
1280
// See issue: https://github.com/sparkfun/SparkFun_RTK_Everywhere_Firmware/issues/693
1268
- if (webServerIsRunning () == true )
1281
+ if (webServerIsRunning () == true )
1269
1282
connected = false ;
1270
1283
1271
1284
// If user wants to log, record to SD
@@ -1878,7 +1891,8 @@ void buttonCheckTask(void *e)
1878
1891
{
1879
1892
switch (systemState)
1880
1893
{
1881
- case STATE_DISPLAY_SETUP: {
1894
+ case STATE_DISPLAY_SETUP:
1895
+ {
1882
1896
// If we are displaying the setup menu, a single tap will cycle through possible system states - see
1883
1897
// above Exit into new system state on double tap Exit display setup into previous state after ~10s
1884
1898
// - see updateSystemState()
0 commit comments