Suppress debug messages in PhoneAPI as they flood the logs when a TCP connection is open

This commit is contained in:
GUVWAF 2022-10-01 12:09:43 +02:00
parent ab282765d4
commit aee06f4738

View File

@ -117,7 +117,7 @@ bool PhoneAPI::handleToRadio(const uint8_t *buf, size_t bufLength)
size_t PhoneAPI::getFromRadio(uint8_t *buf) size_t PhoneAPI::getFromRadio(uint8_t *buf)
{ {
if (!available()) { if (!available()) {
DEBUG_MSG("getFromRadio=not available\n"); // DEBUG_MSG("getFromRadio=not available\n");
return 0; return 0;
} }
// In case we send a FromRadio packet // In case we send a FromRadio packet
@ -319,7 +319,7 @@ bool PhoneAPI::available()
if (!packetForPhone) if (!packetForPhone)
packetForPhone = service.getForPhone(); packetForPhone = service.getForPhone();
bool hasPacket = !!packetForPhone; bool hasPacket = !!packetForPhone;
DEBUG_MSG("available hasPacket=%d\n", hasPacket); // DEBUG_MSG("available hasPacket=%d\n", hasPacket);
return hasPacket; return hasPacket;
} }
default: default: