1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

xtimer: return after xtimer_spin() when within an ISR

This commit is contained in:
Ian Martin 2016-05-10 13:30:40 -04:00
parent efb16ba761
commit 31c6bcc4d8

View File

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