Skip to content

Commit 1daa19a

Browse files
committed
Remove double_tap_flag from LED_pulse(...) function
1 parent 77df2c7 commit 1daa19a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/main.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ volatile const uint8_t bootloader_data[] __attribute__ ((section (".bootloader_v
5050

5151
volatile const uint8_t bootloader_identifier[] __attribute__ ((section (".bootloader_identification"), used)) = "MCUboot Arduino";
5252

53-
static bool double_tap_flag = true;
5453
volatile uint8_t ledKeepValue = 0;
5554
volatile uint8_t ledTargetValue = 20;
5655
volatile int8_t ledDirection = 1;
@@ -77,11 +76,6 @@ static inline void LED_pulse(DigitalOut* led)
7776
return;
7877
}
7978

80-
if (HAL_GetTick() > 500 && double_tap_flag && RTCGetBKPRegister(RTC_BKP_DR0) == 0xDF59) {
81-
RTCSetBKPRegister(RTC_BKP_DR0, 0);
82-
double_tap_flag = false;
83-
}
84-
8579
if (ledKeepValue == 0) {
8680
ledTargetValue += ledDirection;
8781
*led = !*led;

0 commit comments

Comments
 (0)