The UpDown Input is purely interrupt driven and doesn't need an empty OSThread.

This commit is contained in:
Thomas Göttgens
2022-03-30 15:10:02 +02:00
parent da87c15d0b
commit c3defc5c86
2 changed files with 2 additions and 14 deletions

View File

@@ -4,8 +4,7 @@
#include "InputBroker.h"
class UpDownInterruptBase :
public Observable<const InputEvent *>,
private concurrency::OSThread
public Observable<const InputEvent *>
{
public:
explicit UpDownInterruptBase(
@@ -18,8 +17,6 @@ class UpDownInterruptBase :
void intDownHandler();
void intUpHandler();
protected:
virtual int32_t runOnce() override;
private:
uint8_t _pinDown = 0;
uint8_t _pinUp = 0;