Skip to content

Commit

Permalink
Fix spektrum define (betaflight#13459)
Browse files Browse the repository at this point in the history
* Fix spektrum define

* Fixes per review - thanks ledvinap
  • Loading branch information
haslinghuis authored Mar 19, 2024
1 parent 0f109c8 commit d3a4ea6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/pg/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@
#elif defined(USE_SERIALRX_SBUS)
#define SERIALRX_PROVIDER SERIALRX_SBUS
#elif defined(USE_SERIALRX_SPEKTRUM)
#define SERIALRX_PROVIDER SERIALRX_SPEKTRUM
#if defined(USE_TELEMETRY_SRXL)
#define SERIALRX_PROVIDER SERIALRX_SRXL
#else
#define SERIALRX_PROVIDER SERIALRX_SPEKTRUM2048
#endif
#elif defined(USE_SERIALRX_FPORT)
#define SERIALRX_PROVIDER SERIALRX_FPORT
#elif defined(USE_SERIALRX_XBUS)
#define SERIALRX_PROVIDER SERIALRX_XBUS
#define SERIALRX_PROVIDER SERIALRX_XBUS_MODE_B
#elif defined(USE_SERIALRX_SRXL2)
#define SERIALRX_PROVIDER SERIALRX_SRXL2
#elif defined(USE_SERIALRX_JETIEXBUS)
Expand All @@ -59,7 +63,7 @@
#elif defined(USE_SERIALRX_SUMH)
#define SERIALRX_PROVIDER SERIALRX_SUMH
#else
#define SERIALRX_PROVIDER 0
#define SERIALRX_PROVIDER SERIALRX_NONE
#endif

#endif
Expand Down

0 comments on commit d3a4ea6

Please sign in to comment.