This commit is contained in:
e2002
2023-02-21 18:40:11 +03:00
parent f390872d6a
commit fb26dbbf14
5 changed files with 34 additions and 5 deletions

View File

@@ -146,6 +146,8 @@ void Player::setOutputPins(bool isPlaying) {
}
void Player::play(uint16_t stationId, uint32_t filePos) {
remoteStationName = false;
config.setDspOn(1);
display.putRequest(PSTOP);
setDefaults();
setOutputPins(false);
@@ -175,6 +177,8 @@ void Player::play(uint16_t stationId, uint32_t filePos) {
#ifdef MQTT_ROOT_TOPIC
void Player::browseUrl(){
remoteStationName = true;
config.setDspOn(1);
resumeAfterUrl = mode==PLAYING;
display.putRequest(PSTOP);
setDefaults();