Skip to content

Commit

Permalink
zephyr: rename 'led_init()' to 'io_led_init()'
Browse files Browse the repository at this point in the history
This fixes below warning when building with 'MCUBOOT_INDICATION_LED'
enabled:

  mcuboot/boot/zephyr/main.c:410:5:
    warning: implicit declaration of function 'led_init';
             did you mean 'io_led_init'? [-Wimplicit-function-declaration]
      410 |     led_init();
          |     ^~~~~~~~
          |     io_led_init

Fixes: 433b848 ("zephyr: Move IO functions out of main to separate file")
Signed-off-by: Piotr Dymacz <[email protected]>
  • Loading branch information
pepe2k committed Dec 6, 2023
1 parent c43a20f commit 4c7e5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ int main(void)

#ifdef CONFIG_MCUBOOT_INDICATION_LED
/* LED init */
led_init();
io_led_init();
#endif

os_heap_init();
Expand Down

0 comments on commit 4c7e5bc

Please sign in to comment.