Skip to content

Commit f847abe

Browse files
committed
Add gnssIsBlocking
1 parent 2afe90f commit f847abe

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Firmware/RTK_Everywhere/GNSS.ino

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,3 +1263,19 @@ void gnssMenuConstellations()
12631263
um980MenuConstellations();
12641264
}
12651265
}
1266+
1267+
bool gnssIsBlocking()
1268+
{
1269+
if (online.gnss == true)
1270+
{
1271+
if (gnssPlatform == PLATFORM_ZED)
1272+
{
1273+
return (false);
1274+
}
1275+
else if (gnssPlatform == PLATFORM_UM980)
1276+
{
1277+
return (um980IsBlocking());
1278+
}
1279+
}
1280+
return (false);
1281+
}

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void gnssReadTask(void *e)
376376
// same time: gnssReadTask() (to harvest incoming serial data) and um980 (the unicore library to configure the
377377
// device) To allow the Unicore library to send/receive serial commands, we need to block the gnssReadTask
378378
// If the Unicore library does not need lone access, then read from serial port
379-
if (um980IsBlocking() == false)
379+
if (gnssIsBlocking() == false)
380380
{
381381
// Determine if serial data is available
382382
while (serialGNSS->available())

0 commit comments

Comments
 (0)