From cf1b3026b0530f7c17a09626d8e83b96d9b41dac Mon Sep 17 00:00:00 2001 From: cixio <5869764+cixio@users.noreply.github.com> Date: Thu, 30 Jul 2020 12:30:52 +0200 Subject: [PATCH] starting with first enabled QRG on powerup --- libraries/SondeLib/Sonde.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/SondeLib/Sonde.cpp b/libraries/SondeLib/Sonde.cpp index 6106642..01cc963 100644 --- a/libraries/SondeLib/Sonde.cpp +++ b/libraries/SondeLib/Sonde.cpp @@ -383,7 +383,14 @@ void Sonde::setup() { Serial.print("Invalid rxtask.currentSonde: "); Serial.println(rxtask.currentSonde); rxtask.currentSonde = 0; - } + for(int i=0; i=nSonde) rxtask.currentSonde=0; + } + } + sonde.currentSonde = rxtask.currentSonde; + } // update receiver config Serial.print("\nSonde::setup() on sonde index ");