fix a bug with checking miner fault lights in bosminer
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user