From 31c6bcc4d86075c62ffa5a8431bda827df513124 Mon Sep 17 00:00:00 2001 From: Ian Martin Date: Tue, 10 May 2016 13:30:40 -0400 Subject: [PATCH] xtimer: return after xtimer_spin() when within an ISR --- sys/xtimer/xtimer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/xtimer/xtimer.c b/sys/xtimer/xtimer.c index 8918ae86f7..97549435bb 100644 --- a/sys/xtimer/xtimer.c +++ b/sys/xtimer/xtimer.c @@ -39,6 +39,7 @@ void _xtimer_sleep(uint32_t offset, uint32_t long_offset) if (irq_is_in()) { assert(!long_offset); xtimer_spin(offset); + return; } xtimer_t timer;