summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-07-13 14:53:56 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-07-13 14:53:56 +0200
commit99f24e93899b0b0ccf74af4497dfba5839c162c8 (patch)
treeed3f5c2d75b0944242592b5ba1673c504c38e925
parent4b23cb4850aa8f7b8a2823d053dd9369f90c8a9e (diff)
downloadsecure-hid-99f24e93899b0b0ccf74af4497dfba5839c162c8.tar.gz
secure-hid-99f24e93899b0b0ccf74af4497dfba5839c162c8.tar.bz2
secure-hid-99f24e93899b0b0ccf74af4497dfba5839c162c8.zip
hub: Fix forgotten break
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--src/usbh_driver_hub.c5
1 files changed, 5 insertions, 0 deletions
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: