drivers: led: shell: Correct command help of set_brightness
The help text indicates the range of value is 0-255, while the actual maximum value acceptable is 100. This commit updates the text to accurately reflect the acceptable value range for the set_brightness API. Signed-off-by: Chen Xingyu <hi@xingrz.me>
This commit is contained in:
parent
fdaeabfdb6
commit
1939a46629
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_led,
|
|||
SHELL_CMD_ARG(off, NULL, "<device> <led>", cmd_off, 3, 0),
|
||||
SHELL_CMD_ARG(on, NULL, "<device> <led>", cmd_on, 3, 0),
|
||||
SHELL_CMD_ARG(get_info, NULL, "<device> <led>", cmd_get_info, 3, 0),
|
||||
SHELL_CMD_ARG(set_brightness, NULL, "<device> <led> <value [0-255]>",
|
||||
SHELL_CMD_ARG(set_brightness, NULL, "<device> <led> <value [0-100]>",
|
||||
cmd_set_brightness, 4, 0),
|
||||
SHELL_CMD_ARG(set_color, NULL,
|
||||
"<device> <led> <color 0 [0-255]> ... <color N>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue