lost_heap_fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define YOVERSION "0.9.127"
|
#define YOVERSION "0.9.130"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ void Player::setOutputPins(bool isPlaying) {
|
|||||||
if(LED_BUILTIN!=255) digitalWrite(LED_BUILTIN, LED_INVERT?!isPlaying:isPlaying);
|
if(LED_BUILTIN!=255) digitalWrite(LED_BUILTIN, LED_INVERT?!isPlaying:isPlaying);
|
||||||
bool _ml = MUTE_LOCK?!MUTE_VAL:(isPlaying?!MUTE_VAL:MUTE_VAL);
|
bool _ml = MUTE_LOCK?!MUTE_VAL:(isPlaying?!MUTE_VAL:MUTE_VAL);
|
||||||
if(MUTE_PIN!=255) digitalWrite(MUTE_PIN, _ml);
|
if(MUTE_PIN!=255) digitalWrite(MUTE_PIN, _ml);
|
||||||
|
Serial.printf("********************************** setOutputPins %d\n", isPlaying);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::_play(uint16_t stationId) {
|
void Player::_play(uint16_t stationId) {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ void checkConnection(){
|
|||||||
static uint32_t checkInterval = 3000;
|
static uint32_t checkInterval = 3000;
|
||||||
if ((WiFi.status() != WL_CONNECTED) && (millis() - checkMillis >=checkInterval)) {
|
if ((WiFi.status() != WL_CONNECTED) && (millis() - checkMillis >=checkInterval)) {
|
||||||
bool playing = player.isRunning();
|
bool playing = player.isRunning();
|
||||||
if (playing) player.sendCommand({PR_STOP, 0});
|
if (playing) { player.sendCommand({PR_STOP, 0}); player.loop(); }
|
||||||
display.putRequest(NEWMODE, LOST);
|
display.putRequest(NEWMODE, LOST);
|
||||||
Serial.println("Lost connection, reconnecting...");
|
Serial.println("Lost connection, reconnecting...");
|
||||||
while(true){
|
while(true){
|
||||||
|
|||||||
Reference in New Issue
Block a user