Commit 3693916c authored by Dean Camera's avatar Dean Camera
Browse files

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

Fix Webserver project code not compiling due to the changes to the USB mode selection constant names.
parent 7aaced1e
...@@ -90,7 +90,7 @@ void uIPManagement_Init(void) ...@@ -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 = ...@@ -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 = ...@@ -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) ...@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment