fix a bug with checking miner fault lights in bosminer

This commit is contained in:
UpstreamData
2022-09-06 11:01:42 -06:00
parent 62b14a78b7
commit fefe0324b9

View File

@@ -234,9 +234,9 @@ class BOSMiner(BaseMiner):
async def check_light(self) -> bool:
if self.light:
return self.light
data = await self.send_ssh_command("ls /sys/class/leds/'Red LED'/")
data = await self.send_ssh_command("cat /sys/class/leds/'Red LED'/delay_off")
self.light = False
if "delay_on" in data:
if data == "50":
self.light = True
return self.light