Silence unused-variable warning (#2872)
[ExpressLRS.git] / src / lib / Handset / AutoDetect.h
blobf1f58133ada1c45fd28df9e5e040baca0b401bc1
1 #pragma once
3 #include "handset.h"
5 #include <driver/rmt.h>
7 class AutoDetect final : public Handset
9 public:
10 void Begin() override;
11 void End() override;
12 bool IsArmed() override;
13 void handleInput() override;
15 private:
16 void migrateTo(Handset *that) const;
17 void startPPM() const;
18 void startCRSF() const;
20 int input_detect = 0;
21 RingbufHandle_t rb = nullptr;
22 uint32_t lastDetect = 0;