From 8408f3b78520a9688c73a8e10416c264a44f7ec9 Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Thu, 23 Sep 2021 12:22:05 +0200 Subject: [PATCH] (nits) --- RX_FSK/RX_FSK.ino | 2 +- RX_FSK/data/cfg.js | 2 +- RX_FSK/src/Sonde.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index c8b942e..73c2095 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -3751,7 +3751,7 @@ void sondehub_send_data(WiFiClient * client, SondeInfo * s, struct st_sondehub * // Only send pressure if provided if (!isnan(s->d.pressure)) { - sprintf(w, "\"pressure\": %.1f,", s->d.pressure); + sprintf(w, "\"pressure\": %.2f,", s->d.pressure); w += strlen(w); } diff --git a/RX_FSK/data/cfg.js b/RX_FSK/data/cfg.js index bcda035..39bba11 100644 --- a/RX_FSK/data/cfg.js +++ b/RX_FSK/data/cfg.js @@ -69,7 +69,7 @@ var cfgs = [ [ "sondehub.fiactive", "SondeHub frequency import active (0=disabled, 1=active)" ], [ "sondehub.fiinterval", "Import frequency (minutes, ≥ 5)" ], [ "sondehub.fimaxdist", "Import maximum distance (km, ≤ 500)" ], -[ "sondehub.fimaxage", "Import maximum age (hours, ≤ 24)" ], +[ "sondehub.fimaxage", "Import maximum age (hours, ≤ 48)" ], [ "", "Hardware configuration (requires reboot)", "https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/Hardware-configuration"], [ "disptype", "Display type (0=OLED/SSD1306, 1=ILI9225, 2=OLED/SH1106, 3=ILI9341, 4=ILI9342)"], [ "oled_sda", "OLED SDA/TFT SDA"], diff --git a/RX_FSK/src/Sonde.cpp b/RX_FSK/src/Sonde.cpp index ed4f3f7..cb05aea 100644 --- a/RX_FSK/src/Sonde.cpp +++ b/RX_FSK/src/Sonde.cpp @@ -273,6 +273,7 @@ void Sonde::checkConfig() { if(config.maxsonde > MAXSONDE) config.maxsonde = MAXSONDE; if(config.sondehub.fiinterval<5) config.sondehub.fiinterval = 5; if(config.sondehub.fimaxdist>500) config.sondehub.fimaxdist = 500; + if(config.sondehub.fimaxage>48) config.sondehub.fimaxage = 48; if(config.sondehub.fimaxdist==0) config.sondehub.fimaxdist = 150; if(config.sondehub.fimaxage==0) config.sondehub.fimaxage = 2; }