From 1ff28233bd6a64fab97c56861477e122e4c3eac6 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 7 Aug 2024 12:09:23 +1000 Subject: Recalibrate the touchwheel after unlocking Also power it down whilst we're locked. This saves about half a milliamp. --- src/tangara/system_fsm/idle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tangara/system_fsm/idle.cpp') 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(); -- cgit v1.2.3