diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-27 03:56:25 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-06-27 04:29:01 +0200 |
| commit | a2d1e7f02ca8d94c755ced56f1db11646ac2aa72 (patch) | |
| tree | 7fe3dd324d3ace44a74b2aae885610cf8a51a4b5 /embassy-rp | |
| parent | 5e6e18b310ef3c19fd4cdc42fa74dd8ed455e444 (diff) | |
rp/usb: add TODO: implement VBUS detection.
Diffstat (limited to 'embassy-rp')
| -rw-r--r-- | embassy-rp/src/usb.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-rp/src/usb.rs b/embassy-rp/src/usb.rs index 1900ab416..b3f3bd927 100644 --- a/embassy-rp/src/usb.rs +++ b/embassy-rp/src/usb.rs | |||
| @@ -353,6 +353,7 @@ impl<'d, T: Instance> driver::Bus for Bus<'d, T> { | |||
| 353 | poll_fn(move |cx| { | 353 | poll_fn(move |cx| { |
| 354 | BUS_WAKER.register(cx.waker()); | 354 | BUS_WAKER.register(cx.waker()); |
| 355 | 355 | ||
| 356 | // TODO: implement VBUS detection. | ||
| 356 | if !self.inited { | 357 | if !self.inited { |
| 357 | self.inited = true; | 358 | self.inited = true; |
| 358 | return Poll::Ready(Event::PowerDetected); | 359 | return Poll::Ready(Event::PowerDetected); |
