Added new Pipe_BoundEndpointNumber() and Pipe_IsEndpointBound() functions.
[pub/USBasp.git] / Demos / Device / ClassDriver / CDC / CDC.c
index 8ecfb7b..95e1a69 100644 (file)
@@ -75,8 +75,7 @@ int main(void)
        {\r
                CheckJoystickMovement();\r
                \r
-               uint16_t BytesToDiscard = CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface);\r
-               while (BytesToDiscard--)\r
+               while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))\r
                  CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);\r
 \r
                CDC_Device_USBTask(&VirtualSerial_CDC_Interface);\r
@@ -107,7 +106,7 @@ void CheckJoystickMovement(void)
        char*       ReportString  = NULL;\r
        static bool ActionSent    = false;\r
        \r
-       char* JoystickStrings[] =\r
+       char* const JoystickStrings[] =\r
                {\r
                        "Joystick Up\r\n",\r
                        "Joystick Down\r\n",\r