diff options
| author | Matous Hybl <[email protected]> | 2022-08-02 21:49:10 +0200 |
|---|---|---|
| committer | Matous Hybl <[email protected]> | 2022-08-02 22:09:02 +0200 |
| commit | e4cfbf96ac81fe17052c3d91f32a92be2b507368 (patch) | |
| tree | d6b29eb877e36d23dc95c3b4555fa4d98867b215 | |
| parent | c38755c5b737edbc88753c154feff93a5ced2a38 (diff) | |
Implement UsbSupply for a reference of SignalledSupply
| -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 9b6e6e83d..bfd48775f 100644 --- a/embassy-nrf/src/usb.rs +++ b/embassy-nrf/src/usb.rs | |||
| @@ -142,7 +142,7 @@ impl SignalledSupply { | |||
| 142 | } | 142 | } |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | impl UsbSupply for SignalledSupply { | 145 | impl UsbSupply for &SignalledSupply { |
| 146 | fn is_usb_detected(&self) -> bool { | 146 | fn is_usb_detected(&self) -> bool { |
| 147 | self.usb_detected.load(Ordering::Relaxed) | 147 | self.usb_detected.load(Ordering::Relaxed) |
| 148 | } | 148 | } |
