mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Improved loop example docs to highlight that one cannot have empty loops in idle
This commit is contained in:
parent
c5e6d1fa49
commit
e487b235eb
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ references that are safe to access.
|
|||
|
||||
The example below shows that `idle` runs after `init`.
|
||||
|
||||
**Note:** The `loop {}` in idle cannot be empty as this will crash the microcontroller due to a bug
|
||||
in LLVM which miss-optimizes empty loops to a `UDF` instruction in release mode.
|
||||
|
||||
``` rust
|
||||
{{#include ../../../../examples/idle.rs}}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue