From 507f04ea59fd9b0bcd4bd09ac6a5ced9f0a7c682 Mon Sep 17 00:00:00 2001 From: "David E. Tiller" <3858971+dtiller@users.noreply.github.com> Date: Sun, 20 Mar 2022 13:19:47 -0400 Subject: [PATCH] Added date tag for debugging. --- src/eotd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eotd.c b/src/eotd.c index 96c3731..a6fcec6 100644 --- a/src/eotd.c +++ b/src/eotd.c @@ -46,6 +46,7 @@ #include #include #include +#include #include "textcolor.h" #include "eotd.h" @@ -61,7 +62,9 @@ void eotd_to_nmea (unsigned char *eotd, int eotd_len, char *nmea, int nmea_size) { + time_t now = time(NULL); *nmea = '\0'; + strcat(nmea, ctime(&now)); for (int i = 0; i < eotd_len; i++) { char temp[32]; snprintf(temp, sizeof(temp), "%d=%02x ", i, eotd[i]);