starting with first enabled QRG on powerup

pull/36/head
cixio 2020-07-30 12:30:52 +02:00 zatwierdzone przez dl9rdz
rodzic 71afbe932b
commit cf1b3026b0
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -383,7 +383,14 @@ void Sonde::setup() {
Serial.print("Invalid rxtask.currentSonde: ");
Serial.println(rxtask.currentSonde);
rxtask.currentSonde = 0;
}
for(int i=0; i<config.maxsonde - 1; i++) {
if(!sondeList[rxtask.currentSonde].active) {
rxtask.currentSonde++;
if(rxtask.currentSonde>=nSonde) rxtask.currentSonde=0;
}
}
sonde.currentSonde = rxtask.currentSonde;
}
// update receiver config
Serial.print("\nSonde::setup() on sonde index ");