summaryrefslogtreecommitdiff
path: root/src/ui/ui_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-12-12 13:06:53 +1100
committerjacqueline <me@jacqueline.id.au>2023-12-12 13:06:53 +1100
commit5a2f0b08e0e3f20cda977b510b680d5843ae7283 (patch)
tree13f1ce11f13916e3f217dfd687703c8dc757f7c1 /src/ui/ui_fsm.cpp
parent01eb8683733f39a6de984111f035bb8f71dcf8b8 (diff)
downloadtangara-fw-5a2f0b08e0e3f20cda977b510b680d5843ae7283.tar.gz
Centralise which level is 'locked'
Diffstat (limited to 'src/ui/ui_fsm.cpp')
-rw-r--r--src/ui/ui_fsm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp
index 4a196f5d..8e355fd1 100644
--- a/src/ui/ui_fsm.cpp
+++ b/src/ui/ui_fsm.cpp
@@ -80,7 +80,7 @@ auto UiState::InitBootSplash(drivers::IGpios& gpios) -> bool {
sCurrentScreen.reset(new screens::Splash());
sTask.reset(UiTask::Start());
- sDisplay->SetDisplayOn(!gpios.Get(drivers::IGpios::Pin::kKeyLock));
+ sDisplay->SetDisplayOn(!gpios.IsLocked());
return true;
}