Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 75ccfdf

Browse files
committed
Add time output to debug example
Better shows when an I2C read hangs.
1 parent 1c4b40d commit 75ccfdf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: examples/Example14_DebugOutput/Example14_DebugOutput.ino

+13
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ void loop()
7575
Serial.print(F(" SIV: "));
7676
Serial.print(SIV);
7777

78+
Serial.println();
79+
Serial.print(myGPS.getYear());
80+
Serial.print("-");
81+
Serial.print(myGPS.getMonth());
82+
Serial.print("-");
83+
Serial.print(myGPS.getDay());
84+
Serial.print(" ");
85+
Serial.print(myGPS.getHour());
86+
Serial.print(":");
87+
Serial.print(myGPS.getMinute());
88+
Serial.print(":");
89+
Serial.println(myGPS.getSecond());
90+
7891
Serial.println();
7992
}
8093
}

0 commit comments

Comments
 (0)