TimeGPS example

I have a UNO connected to a GPS receiving valid date and I running the TimeGPS example code in the latest Time library.

I changed New Soft Serial to SoftwareSerial.

The code will not run until I insert a "Serial.println(xx);" statement in the "time_t gpsTimeToArduinoTime()" function;

I'm lost as to the reason; any help appreciated.

Bill

TimeGPS.ino (2.18 KB)

The previous post was incorrect

I had to add "Serial.println("here_2");" to "time_t gpsTimeToArduinoTime()"

Correct code attached.

Sorry
Bill

TimeGPS.ino (2.21 KB)

PROBLEM SOLVED

I had a older version of time.h and it was not comparable wit Arduino 1.5.4.r2