diff options
Diffstat (limited to 'firmware/target/arm/usb-fw-pp502x.c')
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index f1d250d3ec..2ba537f286 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c | |||
@@ -212,7 +212,7 @@ static int usb_status = USB_EXTRACTED; | |||
212 | 212 | ||
213 | static int usb_timeout_event(struct timeout *tmo) | 213 | static int usb_timeout_event(struct timeout *tmo) |
214 | { | 214 | { |
215 | usb_status_event(tmo->data == USB_GPIO_VAL ? USB_POWERED : USB_UNPOWERED); | 215 | usb_status_event(tmo->data == USB_GPIO_VAL ? USB_INSERTED : USB_EXTRACTED); |
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
218 | 218 | ||
@@ -231,7 +231,7 @@ void usb_drv_usb_detect_event(void) | |||
231 | { | 231 | { |
232 | /* Filter for invalid bus reset when unplugging by checking the pin state. */ | 232 | /* Filter for invalid bus reset when unplugging by checking the pin state. */ |
233 | if(usb_plugged()) { | 233 | if(usb_plugged()) { |
234 | usb_status_event(USB_INSERTED); | 234 | usb_status_event(USB_HOSTED); |
235 | } | 235 | } |
236 | } | 236 | } |
237 | #endif /* USB_STATUS_BY_EVENT */ | 237 | #endif /* USB_STATUS_BY_EVENT */ |