Alt limit fixed to 2km
This commit is contained in:
parent
e5c2e2db77
commit
e1abacf880
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue