Skip to content

Commit

Permalink
blackpill/platform: Correct the condiitonal compilation symbol to ini…
Browse files Browse the repository at this point in the history
…tialize the bootloader LED pin.
  • Loading branch information
sidprice committed Jan 31, 2025
1 parent 593b906 commit 9d6b35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/common/blackpill-f4/blackpill-f4.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void platform_init(void)
/* Set up LED pins */
gpio_mode_setup(LED_PORT, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, LED_IDLE_RUN | LED_ERROR);
/* Set up LED_BOOTLOADER if it hasn't been set up yet in the bootloader section above */
#ifdef BMP_BOOTLOADER
#ifdef BMD_BOOTLOADER
gpio_mode_setup(LED_PORT, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, LED_BOOTLOADER);
#endif
gpio_mode_setup(LED_PORT_UART, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, LED_UART);
Expand Down

0 comments on commit 9d6b35e

Please sign in to comment.