diff options
| author | Priit Laes <[email protected]> | 2024-02-17 13:20:25 +0200 |
|---|---|---|
| committer | Priit Laes <[email protected]> | 2024-02-17 13:30:19 +0200 |
| commit | 7f2f701c87fbbced32c5586bc7b9a3b61ad25c8d (patch) | |
| tree | 3af65d7d61819c91adc1991c87ec72f0e4139034 /embassy-nrf | |
| parent | 580ab484515d8a75f514bd34a5041090ffd9248c (diff) | |
nrf: Remove useless returns
Diffstat (limited to 'embassy-nrf')
| -rw-r--r-- | embassy-nrf/src/qdec.rs | 2 | ||||
| -rw-r--r-- | embassy-nrf/src/temp.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/qdec.rs b/embassy-nrf/src/qdec.rs index 932790d4f..9455ec925 100644 --- a/embassy-nrf/src/qdec.rs +++ b/embassy-nrf/src/qdec.rs | |||
| @@ -175,7 +175,7 @@ impl<'d, T: Instance> Qdec<'d, T> { | |||
| 175 | poll_fn(|cx| { | 175 | poll_fn(|cx| { |
| 176 | T::state().waker.register(cx.waker()); | 176 | T::state().waker.register(cx.waker()); |
| 177 | if t.events_reportrdy.read().bits() == 0 { | 177 | if t.events_reportrdy.read().bits() == 0 { |
| 178 | return Poll::Pending; | 178 | Poll::Pending |
| 179 | } else { | 179 | } else { |
| 180 | t.events_reportrdy.reset(); | 180 | t.events_reportrdy.reset(); |
| 181 | let acc = t.accread.read().bits(); | 181 | let acc = t.accread.read().bits(); |
diff --git a/embassy-nrf/src/temp.rs b/embassy-nrf/src/temp.rs index 5e2998b10..ed4a47713 100644 --- a/embassy-nrf/src/temp.rs +++ b/embassy-nrf/src/temp.rs | |||
| @@ -83,7 +83,7 @@ impl<'d> Temp<'d> { | |||
| 83 | let value = poll_fn(|cx| { | 83 | let value = poll_fn(|cx| { |
| 84 | WAKER.register(cx.waker()); | 84 | WAKER.register(cx.waker()); |
| 85 | if t.events_datardy.read().bits() == 0 { | 85 | if t.events_datardy.read().bits() == 0 { |
| 86 | return Poll::Pending; | 86 | Poll::Pending |
| 87 | } else { | 87 | } else { |
| 88 | t.events_datardy.reset(); | 88 | t.events_datardy.reset(); |
| 89 | let raw = t.temp.read().bits(); | 89 | let raw = t.temp.read().bits(); |
