Silence unused-variable warning (#2872)
[ExpressLRS.git] / src / lib / Handset / PPMHandset.h
blob84f5767d6a3276a400fd07ebfeb344fda7b69eb5
1 #pragma once
2 #include "handset.h"
4 #include <driver/rmt.h>
6 class PPMHandset final : public Handset
8 public:
9 void Begin() override;
10 void End() override;
11 bool IsArmed() override;
12 void handleInput() override;
14 private:
15 uint32_t lastPPM = 0;
16 size_t numChannels = 0;
17 RingbufHandle_t rb = nullptr;
20 #if defined(PLATFORM_ESP32_S3)
21 constexpr rmt_channel_t PPM_RMT_CHANNEL = RMT_CHANNEL_4;
22 #else
23 constexpr rmt_channel_t PPM_RMT_CHANNEL = RMT_CHANNEL_0;
24 #endif