Skip to content

Commit 367aafb

Browse files
committed
led: Increase LED_MAX to UINT8_MAX
Increase LED_MAX to UINT8_MAX to avoid error when setting pulse width to UINT8_MAX when certain colors are set via WEB UI. Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
1 parent 580882d commit 367aafb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/modules/led/led.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extern "C" {
4242
#define LED_OFF_PERIOD_STROBE 50
4343
#define LED_OFF_PERIOD_LONG 4000
4444

45-
#define LED_MAX 50
45+
#define LED_MAX UINT8_MAX
4646

4747
#define LED_COLOR_OFF LED_COLOR(0, 0, 0)
4848
#define LED_COLOR_RED LED_COLOR(LED_MAX, 0, 0)

0 commit comments

Comments
 (0)