Skip to content

Commit 8f1d7a2

Browse files
committed
Disable UART tasks during testing. Shorten begin timeout to 20ms.
1 parent a3675ab commit 8f1d7a2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,8 +1460,8 @@ void paintSystemTest()
14601460

14611461
SFE_UBLOX_GNSS myGNSS;
14621462

1463-
//begin() attempts 3 connections
1464-
if (myGNSS.begin(serialGNSS) == true)
1463+
//begin() attempts 3 connections with 20ms begin timeout
1464+
if (myGNSS.begin(serialGNSS, 20) == true)
14651465
{
14661466
zedUartPassed = true;
14671467
oled.print(F("OK"));

Firmware/RTK_Surveyor/States.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,9 @@ void updateSystemState()
642642
//Debounce entry into test menu
643643
if (millis() - lastTestMenuChange > 500)
644644
{
645+
stopUART2Tasks(); //Start monitoring the UART1 from ZED for NMEA and UBX data (enables logging)
645646
zedUartPassed = false;
646-
647+
647648
//Enable RTCM 1230. This is the GLONASS bias sentence and is transmitted
648649
//even if there is no GPS fix. We use it to test serial output.
649650
i2cGNSS.enableRTCMmessage(UBX_RTCM_1230, COM_PORT_UART2, 1); //Enable message every second

0 commit comments

Comments
 (0)