Skip to content
Snippets Groups Projects
Commit cd00d5fd authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie
Browse files

Revert " updated validation test for usb_device"

This reverts commit 5024bce531bfeb6f70844f76ea09d7e7de31a067.
parent 97251459
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
void setup(void) void setup(void)
{ {
SERIAL_PORT_MONITOR.begin( 115200 );
while (!SERIAL_PORT_MONITOR); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
SERIAL_PORT_MONITOR.println("Start USB device test");
#ifdef HID_ENABLED #ifdef HID_ENABLED
Mouse.begin(); Mouse.begin();
...@@ -41,11 +37,11 @@ void setup(void) ...@@ -41,11 +37,11 @@ void setup(void)
#endif #endif
#ifdef CDC_ENABLED #ifdef CDC_ENABLED
SERIAL_PORT_USBVIRTUAL.begin(115200); SerialUSB.begin(115200);
#endif #endif
} }
char testchar[10];
void loop(void) void loop(void)
{ {
#ifdef HID_ENABLED #ifdef HID_ENABLED
...@@ -68,14 +64,11 @@ void loop(void) ...@@ -68,14 +64,11 @@ void loop(void)
#endif #endif
#ifdef CDC_ENABLED #ifdef CDC_ENABLED
if (SERIAL_PORT_USBVIRTUAL.available() > 0) if (SerialUSB.available() > 0)
{ {
char inChar; char inChar;
while( -1 == (inChar = SerialUSB.read()));
//while( -1 == (inChar = SERIAL_PORT_USBVIRTUAL.read())); SerialUSB.print(inChar);
inChar = SERIAL_PORT_USBVIRTUAL.read();
SERIAL_PORT_USBVIRTUAL.print(inChar);
} }
delay(10); delay(10);
......
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