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 407c820 commit b29099eCopy full SHA for b29099e
src/gps/GPS.cpp
@@ -240,16 +240,16 @@ GPS_RESPONSE GPS::getACK(const char *message, uint32_t waitMillis)
240
buffer[bytesRead] = b;
241
bytesRead++;
242
if ((bytesRead == 767) || (b == '\r')) {
243
+#ifdef GPS_DEBUG
244
+ LOG_DEBUG(debugmsg.c_str());
245
+#endif
246
if (strnstr((char *)buffer, message, bytesRead) != nullptr) {
247
#ifdef GPS_DEBUG
248
LOG_DEBUG("Found: %s", message); // Log the found message
249
#endif
250
return GNSS_RESPONSE_OK;
251
} else {
252
bytesRead = 0;
-#ifdef GPS_DEBUG
- LOG_DEBUG(debugmsg.c_str());
-#endif
253
}
254
255
0 commit comments