summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/usb-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/usb-as3525.c')
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index 6ff235dfce..6c39150c28 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -46,7 +46,7 @@ void usb_insert_int(void)
{
usb_status = USB_INSERTED;
#ifdef USB_STATUS_BY_EVENT
- usb_status_event(USB_POWERED);
+ usb_status_event(USB_INSERTED);
#endif
}
@@ -54,7 +54,7 @@ void usb_remove_int(void)
{
usb_status = USB_EXTRACTED;
#ifdef USB_STATUS_BY_EVENT
- usb_status_event(USB_UNPOWERED);
+ usb_status_event(USB_EXTRACTED);
#endif
}
@@ -68,7 +68,7 @@ void usb_drv_usb_detect_event(void)
int oldstatus = disable_irq_save(); /* May come via USB thread */
if (usb_status == USB_INSERTED)
- usb_status_event(USB_INSERTED);
+ usb_status_event(USB_HOSTED);
restore_irq(oldstatus);
#endif