mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Implement UsbSupply for a reference of SignalledSupply
This commit is contained in:
parent
c38755c5b7
commit
e4cfbf96ac
@ -142,7 +142,7 @@ impl SignalledSupply {
|
||||
}
|
||||
}
|
||||
|
||||
impl UsbSupply for SignalledSupply {
|
||||
impl UsbSupply for &SignalledSupply {
|
||||
fn is_usb_detected(&self) -> bool {
|
||||
self.usb_detected.load(Ordering::Relaxed)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user