Dependencies:
BufferedSerial
Diff: ATParser.cpp
- Revision:
- 17:bf5ceea4d6f2
- Parent:
- 16:b9b53df4dc4d
- Child:
- 18:23f4573bcda2
diff -r b9b53df4dc4d -r bf5ceea4d6f2 ATParser.cpp
--- 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 {