Add debug

This commit is contained in:
Ben Meadors 2025-04-22 09:41:21 -05:00
parent b8c3a9456d
commit 7f9bddbbad

View File

@ -1378,6 +1378,9 @@ GnssModel_t GPS::getProbeResponse(unsigned long timeout, const std::vector<ChipI
bytesRead++; bytesRead++;
if ((bytesRead == 767) || (b == '\r')) { if ((bytesRead == 767) || (b == '\r')) {
#ifdef GPS_DEBUG
LOG_DEBUG(response.c_str());
#endif
// Check the buffer against each possible response in the map // Check the buffer against each possible response in the map
for (const auto &chip : responseMap) { for (const auto &chip : responseMap) {
if (strnstr((char *)buffer, chip.detectionString.c_str(), bytesRead) != nullptr) { if (strnstr((char *)buffer, chip.detectionString.c_str(), bytesRead) != nullptr) {