From 0347555d5b2314e1be58261ef29fa13a76c039e6 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 30 Jun 2023 17:05:11 +1000 Subject: Start on converting gpio expander interupts to fsm events --- src/ui/ui_fsm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/ui_fsm.cpp') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index bdc1f89f..c2ac6d8b 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -68,6 +68,10 @@ void Interactive::entry() { sCurrentScreen.reset(new screens::Menu()); } +void Interactive::react(const system_fsm::KeyLockChanged& ev) { + sDisplay->SetDisplayOn(ev.falling); +} + } // namespace states } // namespace ui -- cgit v1.2.3