Skip to content

Commit c9814e0

Browse files
committed
Move taskyield in F9Read
1 parent 2e560f8 commit c9814e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Firmware/RTK_Surveyor/Tasks.ino

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ void F9PSerialReadTask(void *e)
4040
{
4141
while (serialGNSS.available())
4242
{
43-
taskYIELD();
44-
4543
auto s = serialGNSS.readBytes(rBuffer, SERIAL_SIZE_RX);
4644

4745
//If we are actively survey-in then do not pass NMEA data from ZED to phone
4846
if (systemState == STATE_BASE_TEMP_SETTLE || systemState == STATE_BASE_TEMP_SURVEY_STARTED)
4947
{
5048
//Do nothing
49+
taskYIELD();
5150
}
5251
else if (SerialBT.connected())
5352
{
@@ -109,7 +108,10 @@ void F9PSerialReadTask(void *e)
109108
}
110109
} //End maxLogTime
111110
} //End logging
112-
}
111+
112+
taskYIELD();
113+
114+
} //End Serial.available()
113115

114116
taskYIELD();
115117
}

0 commit comments

Comments
 (0)