From ff5f4bfa246030a2a36e301def7b3a66fea18a17 Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Wed, 13 Oct 2021 19:20:34 +0200 Subject: [PATCH] no sh location report without enabling sh reporting --- RX_FSK/RX_FSK.ino | 8 +++++--- RX_FSK/version.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 14f2949..70e6cfa 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -3641,9 +3641,11 @@ void sondehub_reply_handler(WiFiClient * client) { // also handle periodic station updates here... // interval check moved to sondehub_station_update to avoid having to calculate distance in auto mode twice - if (shState == SH_CONN_IDLE || shState == SH_DISCONNECTED ) { - // (do not set station update while a telemetry report is being sent - sondehub_station_update(&shclient, &sonde.config.sondehub); + if (sonde.config.sondehub.active) { + if (shState == SH_CONN_IDLE || shState == SH_DISCONNECTED ) { + // (do not set station update while a telemetry report is being sent + sondehub_station_update(&shclient, &sonde.config.sondehub); + } } } diff --git a/RX_FSK/version.h b/RX_FSK/version.h index 70400e3..e7036c1 100644 --- a/RX_FSK/version.h +++ b/RX_FSK/version.h @@ -1,4 +1,4 @@ const char *version_name = "rdzTTGOsonde"; -const char *version_id = "devel20211010"; +const char *version_id = "devel20211013"; const int SPIFFS_MAJOR=2; const int SPIFFS_MINOR=16;