projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new Pipe_BoundEndpointNumber() and Pipe_IsEndpointBound() functions.
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
CDC
/
CDC.c
diff --git
a/Demos/Device/ClassDriver/CDC/CDC.c
b/Demos/Device/ClassDriver/CDC/CDC.c
index
8ecfb7b
..
95e1a69
100644
(file)
--- a/
Demos/Device/ClassDriver/CDC/CDC.c
+++ b/
Demos/Device/ClassDriver/CDC/CDC.c
@@
-75,8
+75,7
@@
int main(void)
{
\r
CheckJoystickMovement();
\r
\r
{
\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
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* 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
{
\r
"Joystick Up\r\n",
\r
"Joystick Down\r\n",
\r