Skip to content

Commit 22cd514

Browse files
aescolarkartben
authored andcommitted
drivers display_nrf_led_matrix: Init variable to avoid compile warning
Initialize row_index to avoid a compile warning. The warning seems incorrect, as row_index is initialized in the first interation of the loop, but the overhead of initializing it is trivial, so we may as well just do it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 94d5d59 commit 22cd514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/display/display_nrf_led_matrix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static void timer_irq_handler(void *arg)
339339
const struct display_drv_config *dev_config = dev->config;
340340
uint8_t iteration = dev_data->iteration;
341341
uint8_t pixel_idx;
342-
uint8_t row_idx;
342+
uint8_t row_idx = 0;
343343

344344
/* The timer is automagically stopped and cleared by shortcuts
345345
* on the same event (COMPARE0) that generates this interrupt.

0 commit comments

Comments
 (0)