Skip to content

Commit

Permalink
Update SERIALRX_PROVIDER default (betaflight#13371)
Browse files Browse the repository at this point in the history
Add telemetry for FPORT selection
  • Loading branch information
haslinghuis authored Feb 16, 2024
1 parent afeb6f1 commit 0daed9f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
24 changes: 20 additions & 4 deletions src/main/pg/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,28 @@

#ifndef SERIALRX_PROVIDER

#if defined(USE_SERIALRX_SBUS)
#define SERIALRX_PROVIDER SERIALRX_SBUS
#if defined(USE_SERIALRX_CRSF)
#define SERIALRX_PROVIDER SERIALRX_CRSF
#elif defined(USE_SERIALRX_GHST)
#define SERIALRX_PROVIDER SERIALRX_GHST
#elif defined(USE_SERIALRX_CRSF)
#define SERIALRX_PROVIDER SERIALRX_CRSF
#elif defined(USE_SERIALRX_IBUS)
#define SERIALRX_PROVIDER SERIALRX_IBUS
#elif defined(USE_SERIALRX_SBUS)
#define SERIALRX_PROVIDER SERIALRX_SBUS
#elif defined(USE_SERIALRX_SPEKTRUM)
#define SERIALRX_PROVIDER SERIALRX_SPEKTRUM
#elif defined(USE_SERIALRX_FPORT)
#define SERIALRX_PROVIDER SERIALRX_FPORT
#elif defined(USE_SERIALRX_XBUS)
#define SERIALRX_PROVIDER SERIALRX_XBUS
#elif defined(USE_SERIALRX_SRXL2)
#define SERIALRX_PROVIDER SERIALRX_SRXL2
#elif defined(USE_SERIALRX_JETIEXBUS)
#define SERIALRX_PROVIDER SERIALRX_JETIEXBUS
#elif defined(USE_SERIALRX_SUMD)
#define SERIALRX_PROVIDER SERIALRX_SUMD
#elif defined(USE_SERIALRX_SUMH)
#define SERIALRX_PROVIDER SERIALRX_SUMH
#else
#define SERIALRX_PROVIDER 0
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/main/target/common_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
#undef USE_TELEMETRY_MAVLINK
#undef USE_TELEMETRY_SMARTPORT
#undef USE_TELEMETRY_SRXL
#endif

#ifdef USE_SERIALRX_FPORT
#ifndef USE_TELEMETRY
Expand All @@ -229,7 +230,6 @@
#define USE_TELEMETRY_SMARTPORT
#endif
#endif
#endif

#if defined(USE_TELEMETRY_IBUS_EXTENDED) && !defined(USE_TELEMETRY_IBUS)
#define USE_TELEMETRY_IBUS
Expand Down

0 comments on commit 0daed9f

Please sign in to comment.