USB_IsConnected is now cleared before the USB_Disconnect() event is fired in response...
[pub/USBasp.git] / LUFA / Drivers / USB / HighLevel / StdDescriptors.c
index 5fdc72e..ae8cc71 100644 (file)
   this software.\r
 */\r
 \r
-#include "../LowLevel/USBMode.h"\r
+#include "USBMode.h"\r
+\r
 #if defined(USB_CAN_BE_DEVICE)\r
 \r
 #include "StdDescriptors.h"\r
 \r
 uint16_t USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** const DescriptorAddress)\r
 {\r
-       RAISE_EVENT(USB_DeviceError, DEVICE_ERROR_GetDescriptorNotHooked);\r
+       EVENT_USB_DeviceError(DEVICE_ERROR_GetDescriptorNotHooked);\r
 \r
        return 0;\r
 };\r