Skip to content

Commit

Permalink
Year-Format in GPRS-String fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
xSnowHeadx committed Apr 10, 2018
1 parent 73c0794 commit 9e98280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fake_GPS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void loop()
{
digitalWrite(BUILTIN_LED, HIGH); // blink for sync
sprintf(tstr, "$GPRMC,%02d%02d%02d,A,0000.0000,N,00000.0000,E,0.0,0.0,%02d%02d%02d,0.0,E,S",
hour(loctime), minute(loctime), second(loctime), day(loctime), month(loctime), year(loctime));
hour(loctime), minute(loctime), second(loctime), day(loctime), month(loctime), year(loctime) - 2000);
cs = 0;
for (i = 1; i < strlen(tstr); i++) // calculate checksum
cs ^= tstr[i];
Expand Down

0 comments on commit 9e98280

Please sign in to comment.