summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-06 08:39:53 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 13:31:47 +0200
commitc9869466ddfab7e7f6258397d1b8863c27e37149 (patch)
tree5e41302208c66ee1568bd5d3bc4c0fbfe7cce130 /src
parentfe54644237156b7b19ca8a9cfd699c0f4e6a0c9a (diff)
downloadsecure-hid-c9869466ddfab7e7f6258397d1b8863c27e37149.tar.gz
secure-hid-c9869466ddfab7e7f6258397d1b8863c27e37149.tar.bz2
secure-hid-c9869466ddfab7e7f6258397d1b8863c27e37149.zip
remove detection of hang
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/usbh_core.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/usbh_core.c b/src/usbh_core.c
index 0570ac3..e673a59 100644
--- a/src/usbh_core.c
+++ b/src/usbh_core.c
@@ -397,7 +397,6 @@ static void device_enumerate(usbh_device_t *dev, usbh_packet_callback_data_t cb_
const usbh_low_level_driver_t *lld = dev->lld;
usbh_generic_data_t *lld_data = lld->driver_data;
uint8_t *usbh_buffer = lld_data->usbh_buffer;
- uint8_t state_start = dev->state; // Detection of hang
// LOG_PRINTF("\nSTATE: %d\n", state);
switch (dev->state) {
case USBH_ENUM_STATE_SET_ADDRESS:
@@ -645,10 +644,6 @@ static void device_enumerate(usbh_device_t *dev, usbh_packet_callback_data_t cb_
LOG_PRINTF("Error: Unknown state "__FILE__"/%d\n", __LINE__);
break;
}
-
- if (state_start == dev->state) {
- LOG_PRINTF("\n !HANG %d\n", state_start);
- }
}
void device_enumeration_start(usbh_device_t *dev)