Fix SMES not working after recharge (#26711)

This commit is contained in:
Mikhail Dzianishchyts
2024-09-12 19:57:57 +03:00
committed by GitHub
parent d8eb231e79
commit d01fca6b26
+1 -1
View File
@@ -293,7 +293,7 @@
if(output_used < 0.0001) // Either from no charge or set to 0
outputting = FALSE
investigate_log("lost power and turned <font color='red'>off</font>", "singulo")
else if(output_attempt && charge > output_level && output_level > 0)
else if(output_attempt && charge > 0 && output_level > 0)
outputting = TRUE
else
output_used = 0