Now works with hubs

This commit is contained in:
Kristian Lauszus 2012-08-08 21:30:00 +02:00
parent 459c5b7984
commit e89c68482b

View file

@ -232,7 +232,8 @@ FailUnknownDevice:
Notify(PSTR(" PID: ")); Notify(PSTR(" PID: "));
PrintHex<uint16_t>(PID); PrintHex<uint16_t>(PID);
#endif #endif
rcode = -1; pUsb->setAddr(bAddress, 0, 0); // Reset address
rcode = USB_DEV_CONFIG_ERROR_DEVICE_NOT_SUPPORTED;
goto Fail; goto Fail;
Fail: Fail:
#ifdef DEBUG #ifdef DEBUG