Skip to content

Commit

Permalink
Update lora_pkt_fwd.c
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmasci authored Apr 29, 2019
1 parent 0087d39 commit f1ea787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lora_pkt_fwd/src/lora_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ void thread_up(void) {
// Add system time if we dont have a GPS
time_t t_local = time(NULL);
x = gmtime(&t_local);
buff_index += snprintf((char *)(buff_up + buff_index), TX_BUFF_SIZE-buff_index, ",\"time\":\"%04i-%02i-%02iT%02i:%02i:%02i.0Z\"", (x->tm_year)+1900, (x->tm_mon)+1, x->tm_mday, x->tm_hour, x->tm_min, x->tm_sec); /* ISO 8601 format */
buff_index += snprintf((char *)(buff_up + buff_index), TX_BUFF_SIZE-buff_index, ",\"systemtime\":\"%04i-%02i-%02iT%02i:%02i:%02i.0Z\"", (x->tm_year)+1900, (x->tm_mon)+1, x->tm_mday, x->tm_hour, x->tm_min, x->tm_sec); /* ISO 8601 format */
}

/* convert packet timestamp to GPS absolute time */
Expand Down

0 comments on commit f1ea787

Please sign in to comment.