I am losing the last bytes into the checksum on my gps unit found here http://www.adafruit.com/products/746. If I comment all lines out except for line 2, then all the bytes are recieved correctly. Is there a way to finish receiving the checksum bytes?
if (mySerial.available()) {
// Serial.print((char)mySerial.read());
char c1 = (char)mySerial.read();
if (c1 == '$') {
char a = (char)mySerial.read();
delay(10);
char b = (char)mySerial.read();
delay(10);
char c = (char)mySerial.read();
delay(10);
char d = (char)mySerial.read();
delay(10);
char e = (char)mySerial.read();
delay(10);
// Serial.print(a);
// Serial.print(b);
// Serial.print(c);
// Serial.print(d);
// Serial.print(e);
if((a=='G') && (b=='P') && (c=='G') && (d=='G') && (e=='A')) {
// Serial.println("Match");
Serial.print(c1);
Serial.print(a);
Serial.print(b);
Serial.print(c);
Serial.print(d);
Serial.print(e);
for(int i = 0; i <= 69; i++) {
into[i] = (char)mySerial.read();
// delay(100);
}
for(int j = 0; j <= 69; j++) {
Serial.print(into[j]);
}
Serial.println("-");
}
}
}