mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 12:07:09 +03:00
ACTRLS_SLEEP should be last (indexed array) and red led is not default for parsing
This commit is contained in:
@@ -283,7 +283,8 @@ void set_led_gpio(int gpio, char *value) {
|
||||
struct led_config_s *config;
|
||||
|
||||
if (strcasestr(value, "green")) config = &green;
|
||||
else config = &red;
|
||||
else if (strcasestr(value, "red"))config = &red;
|
||||
else return;
|
||||
|
||||
config->gpio = gpio;
|
||||
char *p = value;
|
||||
|
||||
Reference in New Issue
Block a user