Fix Webserver project code not compiling due to the changes to the USB mode selection constant names.

pull/1469/head
Dean Camera 14 years ago
parent 7aaced1e8b
commit 3693916cd3

@ -90,7 +90,7 @@ void uIPManagement_Init(void)
*/ */
void uIPManagement_ManageNetwork(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_ProcessIncomingPacket();
uIPManagement_ManageConnections(); uIPManagement_ManageConnections();

@ -64,7 +64,7 @@ USB_ClassInfo_MS_Device_t Disk_MS_Interface =
*/ */
void USBDeviceMode_USBTask(void) void USBDeviceMode_USBTask(void)
{ {
if (USB_CurrentMode != USB_MODE_DEVICE) if (USB_CurrentMode != USB_MODE_Device)
return; return;
MS_Device_USBTask(&Disk_MS_Interface); MS_Device_USBTask(&Disk_MS_Interface);

@ -63,7 +63,7 @@ USB_ClassInfo_RNDIS_Host_t Ethernet_RNDIS_Interface =
*/ */
void USBHostMode_USBTask(void) void USBHostMode_USBTask(void)
{ {
if (USB_CurrentMode != USB_MODE_HOST) if (USB_CurrentMode != USB_MODE_Host)
return; return;
switch (USB_HostState) switch (USB_HostState)

@ -48,7 +48,7 @@ int main(void)
for (;;) for (;;)
{ {
if (USB_CurrentMode == USB_MODE_HOST) if (USB_CurrentMode == USB_MODE_Host)
USBHostMode_USBTask(); USBHostMode_USBTask();
else else
USBDeviceMode_USBTask(); USBDeviceMode_USBTask();

Loading…
Cancel
Save