Skip to content

Commit

Permalink
blackpill: Use bootloader LED macro to control LEDs
Browse files Browse the repository at this point in the history
The LED used to indicate the bootloader is active
is selected according to whether the bootloader
was built for Blackpill-F4 on carrier or standalone.
  • Loading branch information
sidprice committed Aug 29, 2024
1 parent 1a9065d commit a80a60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/common/blackpill-f4/usbdfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ void sys_tick_handler(void)
case 0U:
/* Reload downcounter and disable LED */
count = 10U;
SET_IDLE_STATE(false);
SET_BOOTLOADER_STATE(false);
break;
case 1U:
count--;
/* Enable LED for 1/10th of cycle */
SET_IDLE_STATE(true);
SET_BOOTLOADER_STATE(true);
break;
default:
count--;
Expand Down

0 comments on commit a80a60d

Please sign in to comment.