mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
useful bluetooth debugging output
This commit is contained in:
parent
f54b18f733
commit
dc7469c64b
@ -160,6 +160,11 @@ void esp32Setup()
|
|||||||
DEBUG_MSG("Setting random seed %u\n", seed);
|
DEBUG_MSG("Setting random seed %u\n", seed);
|
||||||
randomSeed(seed); // ESP docs say this is fairly random
|
randomSeed(seed); // ESP docs say this is fairly random
|
||||||
|
|
||||||
|
DEBUG_MSG("Total heap: %d\n", ESP.getHeapSize());
|
||||||
|
DEBUG_MSG("Free heap: %d\n", ESP.getFreeHeap());
|
||||||
|
DEBUG_MSG("Total PSRAM: %d\n", ESP.getPsramSize());
|
||||||
|
DEBUG_MSG("Free PSRAM: %d\n", ESP.getFreePsram());
|
||||||
|
|
||||||
#ifdef AXP192_SLAVE_ADDRESS
|
#ifdef AXP192_SLAVE_ADDRESS
|
||||||
axp192Init();
|
axp192Init();
|
||||||
#endif
|
#endif
|
||||||
|
@ -283,6 +283,8 @@ void loop()
|
|||||||
DEBUG_PORT.loop(); // Send/receive protobufs over the serial port
|
DEBUG_PORT.loop(); // Send/receive protobufs over the serial port
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// heap_caps_check_integrity_all(true); // FIXME - disable this expensive check
|
||||||
|
|
||||||
#ifndef NO_ESP32
|
#ifndef NO_ESP32
|
||||||
esp32Loop();
|
esp32Loop();
|
||||||
#endif
|
#endif
|
||||||
|
@ -91,8 +91,12 @@ void 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, !available\n");
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
DEBUG_MSG("getFromRadio, state=%d\n", state);
|
||||||
|
}
|
||||||
|
|
||||||
// In case we send a FromRadio packet
|
// In case we send a FromRadio packet
|
||||||
memset(&fromRadioScratch, 0, sizeof(fromRadioScratch));
|
memset(&fromRadioScratch, 0, sizeof(fromRadioScratch));
|
||||||
|
Loading…
Reference in New Issue
Block a user