Add dump memory (#336)
This commit is contained in:
parent
b41fec88d5
commit
4cd8600bdf
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue