useful bluetooth debugging output

This commit is contained in:
geeksville
2020-06-13 08:28:01 -07:00
parent f54b18f733
commit dc7469c64b
3 changed files with 12 additions and 1 deletions

View File

@@ -91,8 +91,12 @@ void PhoneAPI::handleToRadio(const uint8_t *buf, size_t bufLength)
*/
size_t PhoneAPI::getFromRadio(uint8_t *buf)
{
if (!available())
if (!available()) {
DEBUG_MSG("getFromRadio, !available\n");
return false;
} else {
DEBUG_MSG("getFromRadio, state=%d\n", state);
}
// In case we send a FromRadio packet
memset(&fromRadioScratch, 0, sizeof(fromRadioScratch));