diff --git a/samples/boards/reel_board/mesh_badge/src/reel_board.c b/samples/boards/reel_board/mesh_badge/src/reel_board.c index 5ff455db0ef..6cdeed6a0a2 100644 --- a/samples/boards/reel_board/mesh_badge/src/reel_board.c +++ b/samples/boards/reel_board/mesh_badge/src/reel_board.c @@ -519,7 +519,7 @@ static void led_timeout(struct k_work *work) } /* Stop after 5 iterations */ - if (led_cntr > (ARRAY_SIZE(leds) * 5)) { + if (led_cntr >= (ARRAY_SIZE(leds) * 5)) { led_cntr = 0; return; }