Skip to content

Commit 834a302

Browse files
committed
ticker test: Fix data scope dependency.
1 parent fe2144f commit 834a302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/mbed_hal/ticker/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,8 +1569,8 @@ static void test_overflow_event_update_when_spurious_interrupt()
15691569
*/
15701570
static void test_irq_handler_single_event()
15711571
{
1572-
const timestamp_t event_timestamp = 0xAAAAAAAA;
1573-
const timestamp_t interface_timestamp_after_irq = event_timestamp + 100;
1572+
static const timestamp_t event_timestamp = 0xAAAAAAAA;
1573+
static const timestamp_t interface_timestamp_after_irq = event_timestamp + 100;
15741574

15751575
uint32_t handler_call = 0;
15761576
struct irq_handler_stub_t {

0 commit comments

Comments
 (0)