lost_heap_fix

This commit is contained in:
e2002
2023-03-27 10:42:47 +03:00
parent d2193350f8
commit 2afac8b6cd
3 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ void checkConnection(){
static uint32_t checkInterval = 3000;
if ((WiFi.status() != WL_CONNECTED) && (millis() - checkMillis >=checkInterval)) {
bool playing = player.isRunning();
if (playing) player.sendCommand({PR_STOP, 0});
if (playing) { player.sendCommand({PR_STOP, 0}); player.loop(); }
display.putRequest(NEWMODE, LOST);
Serial.println("Lost connection, reconnecting...");
while(true){