strip file output when checking for fault light in bosminer
This commit is contained in:
@@ -234,7 +234,9 @@ class BOSMiner(BaseMiner):
|
||||
async def check_light(self) -> bool:
|
||||
if self.light:
|
||||
return self.light
|
||||
data = await self.send_ssh_command("cat /sys/class/leds/'Red LED'/delay_off")
|
||||
data = (
|
||||
await self.send_ssh_command("cat /sys/class/leds/'Red LED'/delay_off")
|
||||
).strip()
|
||||
self.light = False
|
||||
if data == "50":
|
||||
self.light = True
|
||||
|
||||
Reference in New Issue
Block a user