diff --git a/RX_FSK/src/Sonde.cpp b/RX_FSK/src/Sonde.cpp index d3afe3b..7e42524 100644 --- a/RX_FSK/src/Sonde.cpp +++ b/RX_FSK/src/Sonde.cpp @@ -513,6 +513,13 @@ void Sonde::receive() { if (!event) event = timeoutEvent(si); else sonde.dispsavectlON(); int action = (event==EVT_NONE) ? ACT_NONE : disp.layout->actions[event]; + +#if 1 + if ((res==RX_OK || res==RX_ERROR) && (si->d.alt > 2000.0f)) { + action = ACT_NEXTSONDE; + } +#endif // 0 + //if(action!=ACT_NONE) { Serial.printf("event %x: action is %x\n", event, action); } // If action is to move to a different sonde index, we do update things here, set activate // to force the sx1278 task to call sonde.setup(), and pass information about sonde to diff --git a/RX_FSK/version.h b/RX_FSK/version.h index 4e50a14..2c8df1b 100644 --- a/RX_FSK/version.h +++ b/RX_FSK/version.h @@ -1,4 +1,4 @@ const char *version_name = "rdzTTGOsonde"; -const char *version_id = "devel20230829"; +const char *version_id = "multich_v3"; const int SPIFFS_MAJOR=2; const int SPIFFS_MINOR=17;