.
This commit is contained in:
parent
0c2cdae034
commit
e38de82efb
@ -454,10 +454,13 @@ local function processStateMachine()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Reactor is no longer cold - clear charge request flag
|
-- Clear charge request flag once field is sufficiently charged
|
||||||
if chargeRequested then
|
if chargeRequested then
|
||||||
|
local fieldPercent = fieldStrength -- Already calculated above as ratio
|
||||||
|
if fieldPercent >= CONFIG.charge_field_target then
|
||||||
chargeRequested = false
|
chargeRequested = false
|
||||||
print("[INFO] Reactor started, charge request cleared")
|
print("[INFO] Field charged to " .. string.format("%.1f%%", fieldPercent * 100) .. ", charge request cleared")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if reactorStatus == "cooling" then
|
if reactorStatus == "cooling" then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user