diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-02 20:29:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-02 20:29:29 +0000 |
| commit | 1924f2d67d32a4466e71ef0aabc84305a9e8e165 (patch) | |
| tree | 7ad74498619e2a55ac1ea158a63329f0149896be | |
| parent | a903215423e463ec08c13e9831fbbefca2f9c6fa (diff) | |
| parent | e4cfbf96ac81fe17052c3d91f32a92be2b507368 (diff) | |
Merge #890
890: Implement UsbSupply for a reference of SignalledSupply r=Dirbaio a=matoushybl
Co-authored-by: Matous Hybl <[email protected]>
| -rw-r--r-- | embassy-nrf/src/usb.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/usb.rs b/embassy-nrf/src/usb.rs index ee99a9a6a..509ee313e 100644 --- a/embassy-nrf/src/usb.rs +++ b/embassy-nrf/src/usb.rs | |||
| @@ -144,7 +144,7 @@ impl SignalledSupply { | |||
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | impl UsbSupply for SignalledSupply { | 147 | impl UsbSupply for &SignalledSupply { |
| 148 | fn is_usb_detected(&self) -> bool { | 148 | fn is_usb_detected(&self) -> bool { |
| 149 | self.usb_detected.load(Ordering::Relaxed) | 149 | self.usb_detected.load(Ordering::Relaxed) |
| 150 | } | 150 | } |
