Please don't eat the dollar sign
read() was eating the leading dollar sign on the double-buffer swap.
This commit is contained in:
parent
f319935824
commit
e7a91195e5
|
|
@ -220,10 +220,10 @@ char Adafruit_GPS::read(void) {
|
||||||
|
|
||||||
//Serial.print(c);
|
//Serial.print(c);
|
||||||
|
|
||||||
if (c == '$') {
|
// if (c == '$') { //please don't eat the dollar sign - rdl 9/15/14
|
||||||
currentline[lineidx] = 0;
|
// currentline[lineidx] = 0;
|
||||||
lineidx = 0;
|
// lineidx = 0;
|
||||||
}
|
// }
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
currentline[lineidx] = 0;
|
currentline[lineidx] = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue