ACTRLS_SLEEP should be last (indexed array) and red led is not default for parsing

This commit is contained in:
philippe44
2023-09-15 21:26:33 -07:00
parent f4e899fc60
commit 28ecad4652
3 changed files with 6 additions and 5 deletions

View File

@@ -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;