make usbserial handle \r the same way the other serial inputs do
authorArthur Wolf <wolf.arthur@gmail.com>
Sun, 17 Feb 2013 16:56:57 +0000 (17:56 +0100)
committerArthur Wolf <wolf.arthur@gmail.com>
Sun, 17 Feb 2013 16:56:57 +0000 (17:56 +0100)
src/libs/USBDevice/USBSerial/USBSerial.cpp

index 99bfbeb..e3a89e7 100644 (file)
@@ -246,6 +246,7 @@ void USBSerial::on_main_loop(void *argument)
         while (available())\r
         {\r
             char c = _getc();\r
+            if( c == '\r' ){ c = '\n'; } \r
             if( c == '\n' )\r
             {\r
                 struct SerialMessage message;\r