mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
don't wrap static references in a Static
This commit is contained in:
parent
6ea9cda663
commit
f5a4d8e904
4 changed files with 10 additions and 19 deletions
|
|
@ -47,9 +47,9 @@ fn init_(_p: init::Peripherals, _r: init::Resources) {}
|
|||
|
||||
fn idle_(t: &mut Threshold, mut r: idle::Resources) -> ! {
|
||||
loop {
|
||||
**r.OWNED != **r.OWNED;
|
||||
*r.OWNED != *r.OWNED;
|
||||
|
||||
if **r.OWNED {
|
||||
if *r.OWNED {
|
||||
if r.SHARED.claim(t, |shared, _| **shared) {
|
||||
rtfm::wfi();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,9 +50,9 @@ mod main {
|
|||
|
||||
pub fn idle(t: &mut Threshold, mut r: ::idle::Resources) -> ! {
|
||||
loop {
|
||||
**r.OWNED != **r.OWNED;
|
||||
*r.OWNED != *r.OWNED;
|
||||
|
||||
if **r.OWNED {
|
||||
if *r.OWNED {
|
||||
if r.SHARED.claim(t, |shared, _| **shared) {
|
||||
rtfm::wfi();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue