From 99f24e93899b0b0ccf74af4497dfba5839c162c8 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Mon, 13 Jul 2015 14:53:56 +0200 Subject: hub: Fix forgotten break Signed-off-by: Amir Hammad --- src/usbh_driver_hub.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/usbh_driver_hub.c b/src/usbh_driver_hub.c index 9aa55be..ffc3dda 100644 --- a/src/usbh_driver_hub.c +++ b/src/usbh_driver_hub.c @@ -322,6 +322,7 @@ static void event(usbh_device_t *dev, usbh_packet_callback_data_t cb_data) } } break; + case USBH_PACKET_CALLBACK_STATUS_ERRSIZ: { LOG_PRINTF("->\t\t\t\t\t ERRSIZ: deschub\r\n"); @@ -345,6 +346,8 @@ static void event(usbh_device_t *dev, usbh_packet_callback_data_t cb_data) } } } + break; + case USBH_PACKET_CALLBACK_STATUS_EFATAL: case USBH_PACKET_CALLBACK_STATUS_EAGAIN: ERROR(cb_data.status); @@ -380,6 +383,8 @@ static void event(usbh_device_t *dev, usbh_packet_callback_data_t cb_data) cb_data.status = USBH_PACKET_CALLBACK_STATUS_OK; event(dev, cb_data); } + break; + case USBH_PACKET_CALLBACK_STATUS_EFATAL: case USBH_PACKET_CALLBACK_STATUS_EAGAIN: case USBH_PACKET_CALLBACK_STATUS_ERRSIZ: -- cgit