Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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);
......
......@@ -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)
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment