projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed default value for the reset polarity parameter in the AVRISP-MKII project...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
HighLevel
/
DeviceStandardReq.c
diff --git
a/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
b/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
index
83c85de
..
d13ac74
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
+++ b/
LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c
@@
-191,7
+191,10
@@
static void USB_Device_SetConfiguration(void)
Endpoint_ClearStatusStage();
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();
}
EVENT_USB_Device_ConfigurationChanged();
}