usbh_hubbed: When in unknown state, print Error

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
Amir Hammad 2015-07-13 14:50:44 +02:00
parent 0c04dcd6ef
commit 54f3b37a71

View file

@ -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) {