From b6a2c9e7d24408575dffe97bfb1c4517633a6a81 Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Thu, 30 Sep 2021 21:39:53 +0200 Subject: [PATCH] increase upper bound on distance in sondehub import --- RX_FSK/data/cfg.js | 2 +- RX_FSK/src/Sonde.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RX_FSK/data/cfg.js b/RX_FSK/data/cfg.js index 39bba11..ddc6231 100644 --- a/RX_FSK/data/cfg.js +++ b/RX_FSK/data/cfg.js @@ -68,7 +68,7 @@ var cfgs = [ [ "", "SondeHub frequency import", "https://github.com/dl9rdz/rdz_ttgo_sonde/wiki/SondeHub-import" ], [ "sondehub.fiactive", "SondeHub frequency import active (0=disabled, 1=active)" ], [ "sondehub.fiinterval", "Import frequency (minutes, ≥ 5)" ], -[ "sondehub.fimaxdist", "Import maximum distance (km, ≤ 500)" ], +[ "sondehub.fimaxdist", "Import maximum distance (km, ≤ 700)" ], [ "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)"], diff --git a/RX_FSK/src/Sonde.cpp b/RX_FSK/src/Sonde.cpp index c4be466..2357fed 100644 --- a/RX_FSK/src/Sonde.cpp +++ b/RX_FSK/src/Sonde.cpp @@ -272,7 +272,7 @@ extern const int N_CONFIG; 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.fimaxdist>700) config.sondehub.fimaxdist = 700; 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;