{\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
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