Skip to content

Commit

Permalink
led: Increase LED_MAX to UINT8_MAX
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
simensrostad committed Nov 8, 2024
1 parent 580882d commit 367aafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/modules/led/led.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extern "C" {
#define LED_OFF_PERIOD_STROBE 50
#define LED_OFF_PERIOD_LONG 4000

#define LED_MAX 50
#define LED_MAX UINT8_MAX

#define LED_COLOR_OFF LED_COLOR(0, 0, 0)
#define LED_COLOR_RED LED_COLOR(LED_MAX, 0, 0)
Expand Down

0 comments on commit 367aafb

Please sign in to comment.