From a640dca45958f0d739fef8b96c48b22d6f0772d5 Mon Sep 17 00:00:00 2001 From: Claas Date: Thu, 20 Nov 2025 00:00:14 +0100 Subject: [PATCH] Wait for fan lock --- fan-controller/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fan-controller/src/main.rs b/fan-controller/src/main.rs index 602d606..fe893d5 100644 --- a/fan-controller/src/main.rs +++ b/fan-controller/src/main.rs @@ -502,6 +502,8 @@ async fn fan_control_routine( //TODO retry logic info!("Received fan state"); // Instruct modbus to send update + //TODO restart waiting for lock when the fan state gets updated before the lock is released + let fans = fans.get().await.lock().await.deref_mut(); } } -- 2.51.2