feat(radio): Discover SBUS trainer availability (#4266)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
Raphael Coeffic
2024-01-05 11:48:46 +10:00
committed by GitHub
co-authored by raphaelcoeffic Peter Feerick
parent b22fa28db9
commit fa12b27438
39 changed files with 571 additions and 463 deletions
+2 -2
View File
@@ -29,6 +29,7 @@
#include "hitec.h"
#include "hott.h"
#include "mlink.h"
#include "trainer.h"
constexpr int32_t MULTI_DESIRED_VERSION = (1 << 24) | (3 << 16) | (3 << 8) | 0;
#define MULTI_CHAN_BITS 11
@@ -306,8 +307,7 @@ static void processMultiRxChannels(const uint8_t * data, uint8_t len)
break;
}
if (ch == maxCh)
trainerInputValidityTimer = TRAINER_IN_VALID_TIMEOUT;
if (ch == maxCh) { trainerResetTimer(); }
}
#endif