1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #14241 from kaspar030/xtimer_now32_overflow_bugfix

tests/xtimer_now32_overflow: fix active timers going out of scope
This commit is contained in:
Francisco 2020-06-10 08:48:57 +02:00 committed by GitHub
commit 6f74378509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);