Add missing device deconfiguration-on-error statements to the host mode demos and projects.
This commit is contained in:
parent
137ce280c1
commit
d9c16402b9
9 changed files with 13 additions and 0 deletions
|
@ -185,6 +185,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
|
|||
{
|
||||
puts_P(PSTR("Could not Set Boot Protocol Mode.\r\n"));
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
USB_Host_SetDeviceConfiguration(0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue