diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-12 12:25:05 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-12 12:25:05 +0000 |
commit | 3693916cd38bd919f07fe45a2f9d19f5f689242f (patch) | |
tree | 381a147296ff2b6206ea1507b7e05e5cd15ccd04 | |
parent | 7aaced1e8bc81ebbf0a1f06fc443ea4707edd1dd (diff) | |
download | lufa-3693916cd38bd919f07fe45a2f9d19f5f689242f.tar.gz lufa-3693916cd38bd919f07fe45a2f9d19f5f689242f.tar.bz2 lufa-3693916cd38bd919f07fe45a2f9d19f5f689242f.zip |
Fix Webserver project code not compiling due to the changes to the USB mode selection constant names.
-rw-r--r-- | Projects/Webserver/Lib/uIPManagement.c | 2 | ||||
-rw-r--r-- | Projects/Webserver/USBDeviceMode.c | 2 | ||||
-rw-r--r-- | Projects/Webserver/USBHostMode.c | 2 | ||||
-rw-r--r-- | Projects/Webserver/Webserver.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Projects/Webserver/Lib/uIPManagement.c b/Projects/Webserver/Lib/uIPManagement.c index 2d1a93130..1270e18df 100644 --- a/Projects/Webserver/Lib/uIPManagement.c +++ b/Projects/Webserver/Lib/uIPManagement.c @@ -90,7 +90,7 @@ void uIPManagement_Init(void) */ void uIPManagement_ManageNetwork(void) { - if ((USB_CurrentMode == USB_MODE_HOST) && (USB_HostState == HOST_STATE_Configured)) + if ((USB_CurrentMode == USB_MODE_Host) && (USB_HostState == HOST_STATE_Configured)) { uIPManagement_ProcessIncomingPacket(); uIPManagement_ManageConnections(); diff --git a/Projects/Webserver/USBDeviceMode.c b/Projects/Webserver/USBDeviceMode.c index 58f7edc9c..43b5b5dc4 100644 --- a/Projects/Webserver/USBDeviceMode.c +++ b/Projects/Webserver/USBDeviceMode.c @@ -64,7 +64,7 @@ USB_ClassInfo_MS_Device_t Disk_MS_Interface = */ void USBDeviceMode_USBTask(void) { - if (USB_CurrentMode != USB_MODE_DEVICE) + if (USB_CurrentMode != USB_MODE_Device) return; MS_Device_USBTask(&Disk_MS_Interface); diff --git a/Projects/Webserver/USBHostMode.c b/Projects/Webserver/USBHostMode.c index 0eb5c6f4b..d3caa4078 100644 --- a/Projects/Webserver/USBHostMode.c +++ b/Projects/Webserver/USBHostMode.c @@ -63,7 +63,7 @@ USB_ClassInfo_RNDIS_Host_t Ethernet_RNDIS_Interface = */ void USBHostMode_USBTask(void) { - if (USB_CurrentMode != USB_MODE_HOST) + if (USB_CurrentMode != USB_MODE_Host) return; switch (USB_HostState) diff --git a/Projects/Webserver/Webserver.c b/Projects/Webserver/Webserver.c index 9354ee34c..b76d687e9 100644 --- a/Projects/Webserver/Webserver.c +++ b/Projects/Webserver/Webserver.c @@ -48,7 +48,7 @@ int main(void) for (;;) { - if (USB_CurrentMode == USB_MODE_HOST) + if (USB_CurrentMode == USB_MODE_Host) USBHostMode_USBTask(); else USBDeviceMode_USBTask(); |