File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ volatile const uint8_t bootloader_data[] __attribute__ ((section (".bootloader_v
50
50
51
51
volatile const uint8_t bootloader_identifier[] __attribute__ ((section (" .bootloader_identification" ), used)) = " MCUboot Arduino" ;
52
52
53
- static bool double_tap_flag = true ;
54
53
volatile uint8_t ledKeepValue = 0 ;
55
54
volatile uint8_t ledTargetValue = 20 ;
56
55
volatile int8_t ledDirection = 1 ;
@@ -77,11 +76,6 @@ static inline void LED_pulse(DigitalOut* led)
77
76
return ;
78
77
}
79
78
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
-
85
79
if (ledKeepValue == 0 ) {
86
80
ledTargetValue += ledDirection;
87
81
*led = !*led;
You can’t perform that action at this time.
0 commit comments