Implement UsbSupply for a reference of SignalledSupply

This commit is contained in:
Matous Hybl 2022-08-02 21:49:10 +02:00
parent c38755c5b7
commit e4cfbf96ac

View File

@ -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)
}