diff --git a/src/lib/Handset/AutoDetect.cpp b/src/lib/Handset/AutoDetect.cpp index e2805694d0..9ae32d035a 100644 --- a/src/lib/Handset/AutoDetect.cpp +++ b/src/lib/Handset/AutoDetect.cpp @@ -9,7 +9,6 @@ #include -constexpr rmt_channel_t PPM_RMT_CHANNEL = RMT_CHANNEL_0; constexpr auto RMT_TICKS_PER_US = 10; void AutoDetect::Begin() diff --git a/src/lib/Handset/PPMHandset.cpp b/src/lib/Handset/PPMHandset.cpp index e855cdbdfc..dc22d14001 100644 --- a/src/lib/Handset/PPMHandset.cpp +++ b/src/lib/Handset/PPMHandset.cpp @@ -9,7 +9,6 @@ #include -constexpr rmt_channel_t PPM_RMT_CHANNEL = RMT_CHANNEL_0; constexpr auto RMT_TICKS_PER_US = 10; void PPMHandset::Begin() diff --git a/src/lib/Handset/PPMHandset.h b/src/lib/Handset/PPMHandset.h index 49a8be51c6..84f5767d6a 100644 --- a/src/lib/Handset/PPMHandset.h +++ b/src/lib/Handset/PPMHandset.h @@ -15,4 +15,10 @@ class PPMHandset final : public Handset uint32_t lastPPM = 0; size_t numChannels = 0; RingbufHandle_t rb = nullptr; -}; \ No newline at end of file +}; + +#if defined(PLATFORM_ESP32_S3) +constexpr rmt_channel_t PPM_RMT_CHANNEL = RMT_CHANNEL_4; +#else +constexpr rmt_channel_t PPM_RMT_CHANNEL = RMT_CHANNEL_0; +#endif