summaryrefslogtreecommitdiff
path: root/src/tangara/system_fsm
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-08-07 12:09:23 +1000
committerjacqueline <me@jacqueline.id.au>2024-08-07 12:09:23 +1000
commit1ff28233bd6a64fab97c56861477e122e4c3eac6 (patch)
treeb5265a93a0e55043f16cefedbb8f9e43e9d18ff7 /src/tangara/system_fsm
parent649cb74f036c392264264d35f98bef1fa4a5a8aa (diff)
downloadtangara-fw-1ff28233bd6a64fab97c56861477e122e4c3eac6.tar.gz
Recalibrate the touchwheel after unlocking
Also power it down whilst we're locked. This saves about half a milliamp.
Diffstat (limited to 'src/tangara/system_fsm')
-rw-r--r--src/tangara/system_fsm/idle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tangara/system_fsm/idle.cpp b/src/tangara/system_fsm/idle.cpp
index e499693d..d233f603 100644
--- a/src/tangara/system_fsm/idle.cpp
+++ b/src/tangara/system_fsm/idle.cpp
@@ -76,7 +76,7 @@ void Idle::react(const internal::IdleTimeout& ev) {
// other state machines, etc.
auto touchwheel = sServices->touchwheel();
if (touchwheel) {
- touchwheel.value()->PowerDown();
+ touchwheel.value()->LowPowerMode(true);
}
auto& gpios = sServices->gpios();