mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 05:53:49 +01:00
Merge pull request #5426 from locicontrols/xtimer-irq
xtimer: return after xtimer_spin() when within an ISR
This commit is contained in:
commit
b986ac33e8
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user