Skip to content

Commit 507f04e

Browse files
committed
Added date tag for debugging.
1 parent 7bde86f commit 507f04e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/eotd.c

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include <assert.h>
4747
#include <ctype.h>
4848
#include <string.h>
49+
#include <time.h>
4950

5051
#include "textcolor.h"
5152
#include "eotd.h"
@@ -61,7 +62,9 @@
6162

6263
void eotd_to_nmea (unsigned char *eotd, int eotd_len, char *nmea, int nmea_size)
6364
{
65+
time_t now = time(NULL);
6466
*nmea = '\0';
67+
strcat(nmea, ctime(&now));
6568
for (int i = 0; i < eotd_len; i++) {
6669
char temp[32];
6770
snprintf(temp, sizeof(temp), "%d=%02x ", i, eotd[i]);

0 commit comments

Comments
 (0)