Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git] / Demos / Device / ClassDriver / RNDISEthernet / Lib / TCP.c
index 42041b5..6500f3b 100644 (file)
@@ -74,7 +74,7 @@ void TCP_TCPTask(USB_ClassInfo_RNDIS_Device_t* RNDISInterfaceInfo)
        }\r
        \r
        /* Get pointer to the output frame info struct for convenience */\r
        }\r
        \r
        /* Get pointer to the output frame info struct for convenience */\r
-       Ethernet_Frame_Info_t* FrameOUT = (Ethernet_Frame_Info_t*)&RNDISInterfaceInfo->State.FrameOUT;\r
+       Ethernet_Frame_Info_t* FrameOUT = &RNDISInterfaceInfo->State.FrameOUT;\r
        \r
        /* Bail out early if there is already a frame waiting to be sent in the Ethernet OUT buffer */\r
        if (FrameOUT->FrameInBuffer)\r
        \r
        /* Bail out early if there is already a frame waiting to be sent in the Ethernet OUT buffer */\r
        if (FrameOUT->FrameInBuffer)\r