From aba42a847da4d9eecc9c775875322791a38368b8 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 9 Jun 2020 21:21:45 +0200 Subject: [PATCH] tests/xtimer_now32_overflow: fix active timers going out of scope --- tests/xtimer_now32_overflow/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/xtimer_now32_overflow/main.c b/tests/xtimer_now32_overflow/main.c index 01b0cec897..0d58e42ea9 100644 --- a/tests/xtimer_now32_overflow/main.c +++ b/tests/xtimer_now32_overflow/main.c @@ -27,11 +27,11 @@ static void _callback(void *arg) (void)arg; } +static xtimer_t t1 = { .callback=_callback }; +static xtimer_t t2 = { .callback=_callback }; + int main(void) { - xtimer_t t1 = { .callback=_callback }; - xtimer_t t2 = { .callback=_callback }; - /* ensure that xtimer_now64() is greater than UINT32_MAX * and the upper 32bit of xtimer_now64() equal 1 */ _xtimer_current_time = (1LLU << 32U);