Hi
i have a little problem with my code here.
I try to implement a timeout for the softSerial library using the millis function.
The first data send is fine but after that the millis function is stuck to a value of 4364.
Here is the relevant code:
unsigned long start = millis(); do { if (ss.available()) { gps.encode(ss.read()); } Serial.print("millis: "); Serial.println(millis()); } while ((millis() - start) < 200); if ((millis() - start) > 2500) { Serial.println("No GPS data received: check wiring"); gpsactive = false; }