Fix ELRS gating issues. (#12055)
commit23cc2ca02d95d91d6a41fbcbd03b91857b8f7c37
authorDominic Clifton <dominic.clifton@cleanflight.com>
Fri, 16 Dec 2022 03:27:20 +0000 (16 04:27 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 03:27:20 +0000 (16 04:27 +0100)
treee7862042f54f8be8041e805ce1401301dfb4d80f
parentd58ff36712a0eb6a81d42806b408378a61e6094c
Fix ELRS gating issues. (#12055)

* Fix default ELRS timer instance for F405/F745/H7 not taking into account the fact that a target may have set it explicitly.

The compiler error is 'error: "RX_EXPRESSLRS_TIMER_INSTANCE" redefined'.

* The H7RF uses TIM6 and is H7 based.

* ELRS - Fix compilation errors when USE_RX_EXPRESSLRS is defined but when
any of USE_TELEMETRY,USE_TELEMETRY_CRSF,USE_CRSF_LINK_STATISTICS,USE_SERIALRX_CRSF
are not.

ELRS currently depends on CRSF telemetry.
src/main/target/common_post.h
src/main/target/common_pre.h