Add dump memory (#336)

This commit is contained in:
Darrell 2022-02-22 22:02:19 -05:00 committed by GitHub
parent b41fec88d5
commit 4cd8600bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void GUI::begin()
sprite.createSprite(M5.Lcd.width(), M5.Lcd.height());
sprite.setSwapBytes(true);
#elif defined M5ATOM
M5.begin(false, false, true);
M5.begin(false, false, false);
M5.dis.drawpix(0, CRGB(64, 0, 0));
#endif
init = true;

View File

@ -311,6 +311,10 @@ void onMqttMessage(char *topic, char *payload, AsyncMqttClientMessageProperties
{
ESP.restart();
}
else if (command == "dump_memory")
{
heap_caps_dump_all();
}
fingerprints.setParams(refRssi, forgetMs, skipDistance, skipMs, maxDistance, include, exclude, query);
}