mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
Add debug
This commit is contained in:
parent
b8c3a9456d
commit
7f9bddbbad
@ -1378,6 +1378,9 @@ GnssModel_t GPS::getProbeResponse(unsigned long timeout, const std::vector<ChipI
|
||||
bytesRead++;
|
||||
|
||||
if ((bytesRead == 767) || (b == '\r')) {
|
||||
#ifdef GPS_DEBUG
|
||||
LOG_DEBUG(response.c_str());
|
||||
#endif
|
||||
// Check the buffer against each possible response in the map
|
||||
for (const auto &chip : responseMap) {
|
||||
if (strnstr((char *)buffer, chip.detectionString.c_str(), bytesRead) != nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user