File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,7 @@ 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
- volatile uint8_t ledKeepValue = 0 ;
54
- volatile uint8_t ledTargetValue = 20 ;
55
- volatile int8_t ledDirection = 1 ;
56
- volatile int divisor = 0 ;
53
+
57
54
58
55
DigitalOut red (BOARD_RED_LED, 1 );
59
56
DigitalOut green (BOARD_GREEN_LED, 1 );
@@ -78,6 +75,11 @@ static void led_swap_feedback() {
78
75
}
79
76
80
77
static void led_pulse (DigitalOut* led) {
78
+ static uint8_t ledKeepValue = 0 ;
79
+ static uint8_t ledTargetValue = 20 ;
80
+ static int8_t ledDirection = 1 ;
81
+ static int divisor = 0 ;
82
+
81
83
if (divisor++ % 40 ) {
82
84
return ;
83
85
}
You can’t perform that action at this time.
0 commit comments