Changed default value for the reset polarity parameter in the AVRISP-MKII project so that it defaults to active low drive.
Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set.
This commit is contained in:
parent
c0e4f52e8f
commit
a509729b2d
7 changed files with 23 additions and 7 deletions
|
@ -191,7 +191,10 @@ static void USB_Device_SetConfiguration(void)
|
|||
|
||||
Endpoint_ClearStatusStage();
|
||||
|
||||
USB_DeviceState = (USB_ConfigurationNumber) ? DEVICE_STATE_Configured : DEVICE_STATE_Addressed;
|
||||
if (USB_ConfigurationNumber)
|
||||
USB_DeviceState = DEVICE_STATE_Configured;
|
||||
else
|
||||
USB_DeviceState = (USB_Device_IsAddressSet()) ? DEVICE_STATE_Configured : DEVICE_STATE_Powered;
|
||||
|
||||
EVENT_USB_Device_ConfigurationChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue