File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -1189,8 +1189,8 @@ void setup()
1189
1189
DMW_b (" identifyBoard" );
1190
1190
identifyBoard (); // Determine what hardware platform we are running on.
1191
1191
1192
- DMW_b (" commandIndexFill " );
1193
- if (!commandIndexFill ( true )) // Initialize the command table index using possible settings
1192
+ DMW_b (" commandIndexFillPossible " );
1193
+ if (!commandIndexFillPossible ( )) // Initialize the command table index using possible settings
1194
1194
reportFatalError (" Failed to allocate and fill the commandIndex!" );
1195
1195
1196
1196
DMW_b (" beginBoard" );
@@ -1253,10 +1253,9 @@ void setup()
1253
1253
DMW_b (" gnssDetectReceiverType" );
1254
1254
gnssDetectReceiverType (); // If we don't know the receiver from the platform, auto-detect it. Uses settings.
1255
1255
1256
- DMW_b (" commandIndexFill (2)" );
1257
- commandIndexFill (false ); // Shrink the commandIndex table now we're certain what GNSS we have
1258
- loadSettings ();
1259
- recordSystemSettings ();
1256
+ DMW_b (" commandIndexFillActual" );
1257
+ commandIndexFillActual (); // Shrink the commandIndex table now we're certain what GNSS we have
1258
+ recordSystemSettings (); // Save the reduced settings now we're certain what GNSS we have
1260
1259
1261
1260
DMW_b (" beginGnssUart" );
1262
1261
beginGnssUart (); // Requires settings. Start the UART connected to the GNSS receiver on core 0. Start before
Original file line number Diff line number Diff line change @@ -3462,6 +3462,14 @@ bool settingPossibleOnPlatform(int i)
3462
3462
}
3463
3463
3464
3464
// Allocate and fill the commandIndex table
3465
+ bool commandIndexFillPossible ()
3466
+ {
3467
+ return commandIndexFill (true );
3468
+ }
3469
+ bool commandIndexFillActual ()
3470
+ {
3471
+ return commandIndexFill (false );
3472
+ }
3465
3473
bool commandIndexFill (bool usePossibleSettings)
3466
3474
{
3467
3475
int i;
You can’t perform that action at this time.
0 commit comments