Skip to content

Commit a2e686b

Browse files
committed
Add volatile on one variable (alignment with 16bit file)
1 parent 896293d commit a2e686b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/stm_hal_tick_32b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#define DEBUG_TICK 0 // Set to 1 to toggle a pin (see below which pin) at each tick
3434

3535
TIM_HandleTypeDef TimMasterHandle;
36-
uint32_t PreviousVal = 0;
36+
volatile uint32_t PreviousVal = 0;
3737

3838
void us_ticker_irq_handler(void);
3939

0 commit comments

Comments
 (0)