]> granicus.if.org Git - esp-idf/commitdiff
unit-test-app: Fix incorrect CR+LF sequence.
authorAnton Maklakov <anton@espressif.com>
Mon, 5 Jun 2017 02:43:13 +0000 (10:43 +0800)
committerAnton Maklakov <anton@espressif.com>
Mon, 5 Jun 2017 02:51:48 +0000 (10:51 +0800)
This caused problems with handling output by grep, sed, etc

tools/unit-test-app/components/unity/unity_platform.c

index 229d80b5b54e3e7c9875f29867ccd3c0bc812217..c5749f13fd3d8823c8237866010b6eb7f8d2fbfc 100644 (file)
@@ -23,8 +23,8 @@ void unity_putc(int c)
 {
     if (c == '\n') 
     {
-        uart_tx_one_char('\n');
         uart_tx_one_char('\r');
+        uart_tx_one_char('\n');
     }
     else if (c == '\r') 
     {