From 4267f85123ca596fb1b231f42a599c16e9ee7ac3 Mon Sep 17 00:00:00 2001 From: Navid Sassan Date: Tue, 9 Dec 2025 23:09:20 +0100 Subject: [PATCH] . --- de_react_auto | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/de_react_auto b/de_react_auto index 7111bb8..1180202 100644 --- a/de_react_auto +++ b/de_react_auto @@ -522,8 +522,9 @@ local function processStateMachine() end if reactorStatus == "running" then - if fieldStrength < CONFIG.charge_field_target * 0.9 then - setState(STATES.CHARGING, "field " .. fieldPct .. " dropped below threshold while running") + local chargeThreshold = CONFIG.charge_field_target * 0.9 + if fieldStrength < chargeThreshold then + setState(STATES.CHARGING, "field " .. fieldPct .. " < " .. formatPercent(chargeThreshold) .. " threshold") elseif temp > CONFIG.critical_temperature then setState(STATES.COOLING, "temp " .. formatTemp(temp) .. " above critical " .. formatTemp(CONFIG.critical_temperature)) else