Skip to content

Commit

Permalink
led mode play doesn't stop when a station is changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
karawin committed Jan 15, 2018
1 parent e2695fa commit 2b34321
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/webclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,9 @@ void clientDisconnect(const char* from)
kprintf(CLISTOP,from);
xSemaphoreGive(sDisconnect);
audio_player_stop();
if (!ledStatus) gpio_set_level(getLedGpio(),0);
vTaskDelay(10);
if ((from[0]!='C') && (from[0]!='_'))
if (!ledStatus) gpio_set_level(getLedGpio(),0);
vTaskDelay(6);
}

IRAM_ATTR void clientReceiveCallback(int sockfd, char *pdata, int len)
Expand Down

0 comments on commit 2b34321

Please sign in to comment.