Merge #890
890: Implement UsbSupply for a reference of SignalledSupply r=Dirbaio a=matoushybl Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
This commit is contained in:
commit
1924f2d67d
@ -144,7 +144,7 @@ impl SignalledSupply {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl UsbSupply for SignalledSupply {
|
impl UsbSupply for &SignalledSupply {
|
||||||
fn is_usb_detected(&self) -> bool {
|
fn is_usb_detected(&self) -> bool {
|
||||||
self.usb_detected.load(Ordering::Relaxed)
|
self.usb_detected.load(Ordering::Relaxed)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user