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:
|
async def check_light(self) -> bool:
|
||||||
if self.light:
|
if self.light:
|
||||||
return 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
|
self.light = False
|
||||||
if data == "50":
|
if data == "50":
|
||||||
self.light = True
|
self.light = True
|
||||||
|
|||||||
Reference in New Issue
Block a user