.
This commit is contained in:
parent
294d3988a2
commit
4267f85123
@ -522,8 +522,9 @@ local function processStateMachine()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if reactorStatus == "running" then
|
if reactorStatus == "running" then
|
||||||
if fieldStrength < CONFIG.charge_field_target * 0.9 then
|
local chargeThreshold = CONFIG.charge_field_target * 0.9
|
||||||
setState(STATES.CHARGING, "field " .. fieldPct .. " dropped below threshold while running")
|
if fieldStrength < chargeThreshold then
|
||||||
|
setState(STATES.CHARGING, "field " .. fieldPct .. " < " .. formatPercent(chargeThreshold) .. " threshold")
|
||||||
elseif temp > CONFIG.critical_temperature then
|
elseif temp > CONFIG.critical_temperature then
|
||||||
setState(STATES.COOLING, "temp " .. formatTemp(temp) .. " above critical " .. formatTemp(CONFIG.critical_temperature))
|
setState(STATES.COOLING, "temp " .. formatTemp(temp) .. " above critical " .. formatTemp(CONFIG.critical_temperature))
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user