No idea

Dependencies:   BufferedSerial

Dependents:   SPWF01SA

Files at this revision

API Documentation at this revision

Comitter:
mridup
Date:
Thu Jul 07 06:39:34 2016 +0000
Parent:
16:b9b53df4dc4d
Child:
18:23f4573bcda2
Commit message:
fix for vrecv() to get the last '\n' byte in case of recv'ing strings with number endings.

Changed in this revision

ATParser.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ATParser.cpp	Mon Jul 04 12:19:04 2016 +0000
+++ b/ATParser.cpp	Thu Jul 07 06:39:34 2016 +0000
@@ -254,7 +254,8 @@
                         if (c < 0) {
                             return false;
                         }
-                        if(c==0xD) {//there is no next number so exit from condition                                
+                        if(c==0xD) {//there is no next number so exit from condition   
+                            c = getc();//get rid of the following '\n' delimiter
                             break;
                         }
                         else {