Fix M10/M20 time

We need to send UTC time for these.
pull/94/head
Luke Prior 2021-06-27 22:18:32 +10:00 zatwierdzone przez GitHub
rodzic 19f3004a27
commit 6485be7cb2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -3146,7 +3146,7 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
// DFM uses UTC. Most of the other radiosondes use GPS time
// SondeHub expect datetime to be the same time sytem as the sonde transmits as time stamp
if ( s->type == STYPE_RS41 || s->type == STYPE_RS92 || s->type == STYPE_M10 || s->type == STYPE_M20 ) {
if ( s->type == STYPE_RS41 || s->type == STYPE_RS92 ) {
t += 18; // convert back to GPS time from UTC time +18s
}