Mangirdas Skripka / Android

Files at this revision

API Documentation at this revision

Comitter:
maskas
Date:
Tue Jan 16 18:30:30 2018 +0000
Parent:
4:5f1af832e593
Commit message:

Changed in this revision

Android.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5f1af832e593 -r 0df77b612c09 Android.cpp
--- a/Android.cpp	Sun Jan 14 07:59:44 2018 +0000
+++ b/Android.cpp	Tue Jan 16 18:30:30 2018 +0000
@@ -77,7 +77,9 @@
         printf("Unknown command: |%s|\n", command);
     }        
        
-    this->serial.getc();//read newline 
+    if (this->serial.readable()){
+        this->serial.getc();//read newline
+    } 
 }