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/src/temp.rs | |
| parent | 580ab484515d8a75f514bd34a5041090ffd9248c (diff) | |
nrf: Remove useless returns
Diffstat (limited to 'embassy-nrf/src/temp.rs')
| -rw-r--r-- | embassy-nrf/src/temp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
