summaryrefslogtreecommitdiff
path: root/common/cmd_led.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_led.c')
-rw-r--r--common/cmd_led.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/cmd_led.c b/common/cmd_led.c
index d14dd5a..183dc0b 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -108,7 +108,9 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
} else {
__led_set(led_commands[i].mask, state);
}
- break;
+ /* Need to set only 1 led if led_name wasn't 'all' */
+ if (strcmp("all", argv[1]) != 0)
+ break;
}
}