From 81f8a49118ca46003600b73a203d91235e4922cc Mon Sep 17 00:00:00 2001 From: "dl9rdz (via Travis CI)" Date: Mon, 17 May 2021 11:38:16 +0300 Subject: [PATCH] check lat, lon and alt zero data --- RX_FSK/RX_FSK.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 0f30863..58ae2bc 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -2961,6 +2961,8 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co if (s->ser == "") return; // Don't send anything without serial number + if (((int)s->lat == 0) && ((int)s->lon == 0) && ((int)s->alt == 0)) return; // Sometimes all of these values are zeroes. Don't send those to the sondehub + t += 18; // convert back to GPS time from UTC time +18s ts = *gmtime(&t);