From 8ffaa8be63b305c3712a59eaab4ee963793dadbe Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Wed, 22 Sep 2021 10:03:22 +0200 Subject: [PATCH] temp, hum with 1 decimal digit for sondehub --- RX_FSK/RX_FSK.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 5dd29fa..90c8163 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -3718,13 +3718,13 @@ void sondehub_send_data(WiFiClient * client, SondeInfo * s, struct st_sondehub * // Only send temp if provided if ((int)s->temperature != 0) { - sprintf(w, "\"temp\": %.3f,", float(s->temperature)); + sprintf(w, "\"temp\": %.1f,", float(s->temperature)); w += strlen(w); } // Only send humidity if provided if ((int)s->relativeHumidity != 0) { - sprintf(w, "\"humidity\": %.3f,", float(s->relativeHumidity)); + sprintf(w, "\"humidity\": %.1f,", float(s->relativeHumidity)); w += strlen(w); }