summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-30 17:05:11 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-30 17:05:11 +1000
commit0347555d5b2314e1be58261ef29fa13a76c039e6 (patch)
treee38879c0dc8bbf0a58057d22b26f28c0a9b86e93 /src/ui/ui_fsm.cpp
parent9763cc955c4f3b2c2af54b61c2c5ad77afef9603 (diff)
downloadtangara-fw-0347555d5b2314e1be58261ef29fa13a76c039e6.tar.gz
Start on converting gpio expander interupts to fsm events
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp4
1 files changed, 4 insertions, 0 deletions
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