Unverified Commit f2f1f5bc authored by Wolle's avatar Wolle Committed by GitHub

Merge pull request #649 from h3ndrik/esphome_webstream

Fix pausing webstream
parents 16389579 369bcf0e
......@@ -2109,7 +2109,7 @@ uint32_t Audio::stopSong() {
bool Audio::pauseResume() {
xSemaphoreTake(mutex_audio, portMAX_DELAY);
bool retVal = false;
if(getDatamode() == AUDIO_LOCALFILE || m_streamType == ST_WEBSTREAM) {
if(getDatamode() == AUDIO_LOCALFILE || m_streamType == ST_WEBSTREAM || m_streamType == ST_WEBFILE) {
m_f_running = !m_f_running;
retVal = true;
if(!m_f_running) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment