bug: fix some issues with epic send config.

This commit is contained in:
b-rowan
2024-01-27 09:25:20 -07:00
parent a821357b4f
commit 4f0eb49a02
4 changed files with 11 additions and 13 deletions

View File

@@ -116,13 +116,11 @@ class ePIC(BaseMiner):
if not conf.get("temps", {}) == {}:
await self.web.set_shutdown_temp(conf["temps"]["shutdown"])
# Fans
# set with sub-keys instead of conf["fans"] because sometimes both can be set
if not conf["fans"].get("Manual", {}) == {}:
await self.web.set_fan({"Manual": conf["fans"]["Manual"]})
elif not conf["fans"].get("Auto", {}) == {}:
target_temp = {"Target Temperature": conf["fans"]["Target Temperature"]}
await self.web.set_fan(
{"Auto": {**conf["fans"]["Auto"], **target_temp}}
)
await self.web.set_fan({"Auto": conf["fans"]["Auto"]})
# Mining Mode -- Need to handle that you may not be able to change while miner is tuning
if conf["ptune"].get("enabled", True):