mirror of https://github.com/wb2osz/direwolf.git
Added date tag for debugging.
This commit is contained in:
parent
7bde86f6fc
commit
507f04ea59
|
@ -46,6 +46,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include "textcolor.h"
|
#include "textcolor.h"
|
||||||
#include "eotd.h"
|
#include "eotd.h"
|
||||||
|
@ -61,7 +62,9 @@
|
||||||
|
|
||||||
void eotd_to_nmea (unsigned char *eotd, int eotd_len, char *nmea, int nmea_size)
|
void eotd_to_nmea (unsigned char *eotd, int eotd_len, char *nmea, int nmea_size)
|
||||||
{
|
{
|
||||||
|
time_t now = time(NULL);
|
||||||
*nmea = '\0';
|
*nmea = '\0';
|
||||||
|
strcat(nmea, ctime(&now));
|
||||||
for (int i = 0; i < eotd_len; i++) {
|
for (int i = 0; i < eotd_len; i++) {
|
||||||
char temp[32];
|
char temp[32];
|
||||||
snprintf(temp, sizeof(temp), "%d=%02x ", i, eotd[i]);
|
snprintf(temp, sizeof(temp), "%d=%02x ", i, eotd[i]);
|
||||||
|
|
Loading…
Reference in New Issue