add check_light() for bosminers by checking if delay_on exists in the Red LED directory
This commit is contained in:
@@ -232,8 +232,12 @@ class BOSMiner(BaseMiner):
|
|||||||
await conn.run("/etc/init.d/bosminer start")
|
await conn.run("/etc/init.d/bosminer start")
|
||||||
|
|
||||||
async def check_light(self) -> bool:
|
async def check_light(self) -> bool:
|
||||||
if not self.light:
|
if self.light:
|
||||||
self.light = False
|
return self.light
|
||||||
|
data = await self.send_ssh_command("ls /sys/class/leds/'Red LED'/")
|
||||||
|
self.light = False
|
||||||
|
if "delay_on" in data:
|
||||||
|
self.light = True
|
||||||
return self.light
|
return self.light
|
||||||
|
|
||||||
async def get_errors(self) -> list:
|
async def get_errors(self) -> list:
|
||||||
|
|||||||
Reference in New Issue
Block a user