pull/2462/head
Thomas Göttgens 2023-05-06 18:13:52 +02:00
rodzic 57aaf7f6ee
commit 81bfd69a41
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
#include "NMEAWPL.h"
#include "GeoCoord.h"
#include <time.h>
#include "RTC.h"
#include <time.h>
/* -------------------------------------------
* 1 2 3 4 5 6
@ -61,7 +61,6 @@ uint32_t printGGA(char *buf, size_t bufsz, const meshtastic_Position &pos)
tm *t = localtime((time_t *)&pos.timestamp);
if (getRTCQuality() > 0) // use the device clock if we got time from somewhere. If not, use the GPS timestamp.
t = localtime((time_t *)getValidTime(RTCQuality::RTCQualityDevice));
uint32_t len = snprintf(
buf, bufsz, "$GNGGA,%02d%02d%02d.%02d,%02d%07.4f,%c,%03d%07.4f,%c,%u,%02u,%04u,%04d,%c,%04d,%c,%d,%04d", t->tm_hour,