Rotary Encoder Update - play nice with Onebutton and small bugfix - also switches screen on when any input is processed by the broker

This commit is contained in:
Thomas Göttgens
2022-03-21 15:16:25 +01:00
parent d81c1c08ee
commit aca95248ee
6 changed files with 24 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
#include "InputBroker.h"
#include "PowerFSM.h" // needed for event trigger
InputBroker *inputBroker;
@@ -13,6 +14,7 @@ void InputBroker::registerSource(Observable<const InputEvent *> *source)
int InputBroker::handleInputEvent(const InputEvent *event)
{
powerFSM.trigger(EVENT_INPUT);
this->notifyObservers(event);
return 0;
}