diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index 9872cff..d5c22f2 100644 --- a/yoRadio/src/core/options.h +++ b/yoRadio/src/core/options.h @@ -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. diff --git a/yoRadio/src/core/player.cpp b/yoRadio/src/core/player.cpp index f774139..1a39dfa 100644 --- a/yoRadio/src/core/player.cpp +++ b/yoRadio/src/core/player.cpp @@ -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) { diff --git a/yoRadio/yoRadio.ino b/yoRadio/yoRadio.ino index 4cdc99c..dbca3a3 100644 --- a/yoRadio/yoRadio.ino +++ b/yoRadio/yoRadio.ino @@ -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){