Skip to content

Commit 47805a0

Browse files
committed
Release semaphore
1 parent 91abf32 commit 47805a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,10 @@ long UM980::getPortBaudrate(const char *comName, uint16_t maxWaitMs)
622622
updateOnce(); // Will call um980ProcessMessage() and configHandler()
623623

624624
if (configStringFound == true)
625+
{
626+
unicoreLibrarySemaphoreBlock = false; // Allow external tasks to control serial hardware
625627
return (configLong);
628+
}
626629

627630
if (commandResponse == UM980_RESULT_RESPONSE_COMMAND_ERROR)
628631
{
@@ -759,7 +762,10 @@ float UM980::getElevationAngle(uint16_t maxWaitMs)
759762
updateOnce(); // Will call um980ProcessMessage() and configHandler()
760763

761764
if (configStringFound == true)
765+
{
766+
unicoreLibrarySemaphoreBlock = false; // Allow external tasks to control serial hardware
762767
return (configFloat);
768+
}
763769

764770
if (commandResponse == UM980_RESULT_RESPONSE_COMMAND_ERROR)
765771
{

0 commit comments

Comments
 (0)