Please don't eat the dollar sign

read() was eating the leading dollar sign on the double-buffer swap.
This commit is contained in:
driverblock 2014-09-15 14:27:53 -04:00
parent f319935824
commit e7a91195e5
1 changed files with 4 additions and 4 deletions

View File

@ -220,10 +220,10 @@ char Adafruit_GPS::read(void) {
//Serial.print(c);
if (c == '$') {
currentline[lineidx] = 0;
lineidx = 0;
}
// if (c == '$') { //please don't eat the dollar sign - rdl 9/15/14
// currentline[lineidx] = 0;
// lineidx = 0;
// }
if (c == '\n') {
currentline[lineidx] = 0;