diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2016-09-11 12:03:20 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2016-09-11 13:31:48 +0200 |
commit | 4415d960c3d1e52573db02be4aee6e22d22809cf (patch) | |
tree | 5fb726233f1067a6c4866f00a651405921ee029f /src/usbh_driver_gp_xbox.c | |
parent | bacf8ecdbb65774f04fce6ec6cd373a2651ddd67 (diff) | |
download | secure-hid-4415d960c3d1e52573db02be4aee6e22d22809cf.tar.gz secure-hid-4415d960c3d1e52573db02be4aee6e22d22809cf.tar.bz2 secure-hid-4415d960c3d1e52573db02be4aee6e22d22809cf.zip |
use default case instead of handling other packet statuses explicitely
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src/usbh_driver_gp_xbox.c')
-rw-r--r-- | src/usbh_driver_gp_xbox.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/usbh_driver_gp_xbox.c b/src/usbh_driver_gp_xbox.c index d9e6d79..957cb3e 100644 --- a/src/usbh_driver_gp_xbox.c +++ b/src/usbh_driver_gp_xbox.c @@ -257,8 +257,7 @@ static void event(usbh_device_t *dev, usbh_packet_callback_data_t cb_data) gp_xbox->state_next = STATE_READING_REQUEST; break; - case USBH_PACKET_CALLBACK_STATUS_EFATAL: - case USBH_PACKET_CALLBACK_STATUS_EAGAIN: + default: ERROR(cb_data.status); gp_xbox->state_next = STATE_INACTIVE; break; |