Skip to content

Commit 4e361eb

Browse files
committed
Remove redundant correctionsSource:: from correctionsSource::CORR_NUM
1 parent 383f145 commit 4e361eb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Firmware/RTK_Everywhere/menuCorrectionsPriorities.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,11 @@ void menuCorrectionsPriorities()
299299
&settings.correctionsSourcesLifetime_s);
300300

301301
// Check for priority decrease
302-
else if ((incoming >= 'a') && (incoming < ('a' + correctionsSource::CORR_NUM)))
302+
else if ((incoming >= 'a') && (incoming < ('a' + CORR_NUM)))
303303
correctionPriorityDecrease(settings.correctionsSourcesPriority[incoming - 'a']);
304304

305305
// Check for priority increase
306-
else if ((incoming >= 'A') && (incoming < ('A' + correctionsSource::CORR_NUM)))
306+
else if ((incoming >= 'A') && (incoming < ('A' + CORR_NUM)))
307307
correctionPriorityIncrease(settings.correctionsSourcesPriority[incoming - 'A']);
308308

309309
else if (incoming == 'x')

Firmware/RTK_Everywhere/settings.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ typedef enum
149149
typedef uint8_t CORRECTION_ID_T; // Type holding a correction ID or priority
150150
typedef uint8_t CORRECTION_MASK_T; // Type holding a bitmask of correction IDs
151151

152-
const char * const correctionsSourceNames[correctionsSource::CORR_NUM] =
152+
const char * const correctionsSourceNames[CORR_NUM] =
153153
{
154154
// These must match correctionsSource above
155155
"External Radio",
@@ -620,7 +620,7 @@ struct Settings
620620

621621
// Corrections
622622
int correctionsSourcesLifetime_s = 30; // Expire a corrections source if no data is seen for this many seconds
623-
CORRECTION_ID_T correctionsSourcesPriority[correctionsSource::CORR_NUM] = { (CORRECTION_ID_T)-1 }; // -1 indicates array is uninitialized, indexed by correction source ID
623+
CORRECTION_ID_T correctionsSourcesPriority[CORR_NUM] = { (CORRECTION_ID_T)-1 }; // -1 indicates array is uninitialized, indexed by correction source ID
624624
bool debugCorrections = false;
625625
uint8_t enableExtCorrRadio = 254; // Will be initialized to true or false depending on model
626626
uint8_t extCorrRadioSPARTNSource = 0; // This selects IP (0) vs. L-Band (1) for _SPARTN_ corrections on Radio Ext (UART2)
@@ -1177,7 +1177,7 @@ const RTK_Settings_Entry rtkSettingsEntries[] =
11771177

11781178
// Corrections
11791179
{ 1, 1, 0, 1, 1, 1, 1, 1, 1, _int, 0, & settings.correctionsSourcesLifetime_s, "correctionsSourcesLifetime", },
1180-
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, tCorrSPri, correctionsSource::CORR_NUM, & settings.correctionsSourcesPriority, "correctionsPriority_", },
1180+
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, tCorrSPri, CORR_NUM, & settings.correctionsSourcesPriority, "correctionsPriority_", },
11811181
{ 0, 0, 0, 1, 1, 1, 1, 1, 1, _bool, 0, & settings.debugCorrections, "debugCorrections", },
11821182
{ 1, 1, 0, 1, 1, 1, 0, 1, 1, _bool, 0, & settings.enableExtCorrRadio, "enableExtCorrRadio", },
11831183
{ 1, 1, 0, 1, 1, 0, 0, 1, 0, _uint8_t, 0, & settings.extCorrRadioSPARTNSource, "extCorrRadioSPARTNSource", },

Firmware/RTK_Everywhere/support.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ void verifyTables()
723723
correctionVerifyTables();
724724
webServerVerifyTables();
725725

726-
if (correctionsSource::CORR_NUM >= (int)('x' - 'a'))
726+
if (CORR_NUM >= (int)('x' - 'a'))
727727
reportFatalError("Too many correction sources");
728728
}
729729

0 commit comments

Comments
 (0)