bug: fix an issue with a possible SSH command in BOS+.

This commit is contained in:
UpstreamData
2023-07-04 10:01:24 -06:00
parent 1b7afaaf7e
commit d2bea227db

View File

@@ -1038,6 +1038,7 @@ class BOSMiner(BaseMiner):
pass
# get light via ssh if that fails (10x slower)
try:
data = (
await self.send_ssh_command("cat /sys/class/leds/'Red LED'/delay_off")
).strip()
@@ -1045,6 +1046,8 @@ class BOSMiner(BaseMiner):
if data == "50":
self.light = True
return self.light
except TypeError:
return self.light
async def get_nominal_hashrate(self, api_devs: dict = None) -> Optional[float]:
if not api_devs: