diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2015-07-13 14:50:44 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2015-07-13 14:54:11 +0200 |
commit | 54f3b37a7176a905866085fb43276d8f1840f196 (patch) | |
tree | a15db536db14d5abaa49ae854d123737cfd77b67 /src | |
parent | 0c04dcd6ef62e7e77fbac02d77832857bff7dbed (diff) | |
download | secure-hid-54f3b37a7176a905866085fb43276d8f1840f196.tar.gz secure-hid-54f3b37a7176a905866085fb43276d8f1840f196.tar.bz2 secure-hid-54f3b37a7176a905866085fb43276d8f1840f196.zip |
usbh_hubbed: When in unknown state, print Error
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usbh_hubbed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usbh_hubbed.c b/src/usbh_hubbed.c index 039ccd5..0ebaf1c 100644 --- a/src/usbh_hubbed.c +++ b/src/usbh_hubbed.c @@ -519,6 +519,10 @@ static void device_enumerate(usbh_device_t *dev, usbh_packet_callback_data_t cb_ } break; + + default: + LOG_PRINTF("Error: Unknown state "__FILE__"/%d\n", __LINE__); + break; } if (state_start == dev->state) { |