bug: Reverse check for whatsminer fault light as it was backwards.

This commit is contained in:
UpstreamData
2023-02-09 15:47:11 -07:00
parent d632360932
commit c0096126df

View File

@@ -543,7 +543,7 @@ class BTMiner(BaseMiner):
if api_get_miner_info:
try:
self.light = api_get_miner_info["Msg"]["ledstat"] == "auto"
self.light = not (api_get_miner_info["Msg"]["ledstat"] == "auto")
except KeyError:
pass