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

@@ -1,7 +1,7 @@
#ifndef options_h
#define options_h
#define YOVERSION "0.9.127"
#define YOVERSION "0.9.130"
/*******************************************************
DO NOT EDIT THIS FILE.

View File

@@ -162,6 +162,7 @@ void Player::setOutputPins(bool isPlaying) {
if(LED_BUILTIN!=255) digitalWrite(LED_BUILTIN, LED_INVERT?!isPlaying:isPlaying);
bool _ml = MUTE_LOCK?!MUTE_VAL:(isPlaying?!MUTE_VAL:MUTE_VAL);
if(MUTE_PIN!=255) digitalWrite(MUTE_PIN, _ml);
Serial.printf("********************************** setOutputPins %d\n", isPlaying);
}
void Player::_play(uint16_t stationId) {

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){