We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5253f5 commit 54f397aCopy full SHA for 54f397a
Firmware/RTK_Everywhere/Tasks.ino
@@ -835,7 +835,8 @@ void processUart1Message(SEMP_PARSE_STATE *parse, uint16_t type)
835
if (appleAccessory->latestEASessionDataIsBlocking() == false)
836
{
837
size_t spaceAvailable = latestEASessionDataMaxLen - strlen(latestEASessionData);
838
- spaceAvailable -= 3; // Leave room for the CR, LF and NULL
+ if (spaceAvailable >= 3)
839
+ spaceAvailable -= 3; // Leave room for the CR, LF and NULL
840
while (spaceAvailable < parse->length) // If the buffer is full, delete the oldest message(s)
841
842
const char *lfPtr = strstr(latestEASessionData, "\n"); // Find the first LF
0 commit comments