Skip to content

Commit 88aff51

Browse files
committed
Fix entry into test menu.
1 parent 818d53e commit 88aff51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const uint8_t F9PSerialWriteTaskPriority = 1; //3 being the highest, and 0 being
223223
const uint8_t F9PSerialReadTaskPriority = 1;
224224

225225
TaskHandle_t pinUART2TaskHandle = NULL; //Dummy task to start UART2 on core 0.
226-
bool uart2pinned = false;
226+
volatile bool uart2pinned = false; //This variable is touched by core 0 but checked by core 1. Must be volatile.
227227

228228
//Reduced stack size from 10,000 to 2,000 to make room for WiFi/NTRIP server capabilities
229229
const int readTaskStackSize = 2500;
@@ -350,7 +350,7 @@ bool setupByPowerButton = false; //We can change setup via tapping power button
350350
uint16_t svinObservationTime = 0; //Use globals so we don't have to request these values multiple times (slow response)
351351
float svinMeanAccuracy = 0;
352352

353-
uint32_t lastSetupMenuChange = 0;
353+
uint32_t lastSetupMenuChange = 0; //Auto-selects the setup menu option after 1500ms
354354
uint32_t lastTestMenuChange = 0; //Avoids exiting the test menu for at least 1 second
355355
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
356356

@@ -486,7 +486,6 @@ void updateLogs()
486486
}
487487
}
488488
}
489-
// }
490489
}
491490

492491
//Once we have a fix, sync system clock to GNSS

0 commit comments

Comments
 (0)