improve how the fault light looks on whatsminers

This commit is contained in:
UpstreamData
2022-08-11 11:58:42 -06:00
parent 1f59ef025d
commit ee45f2342e
2 changed files with 5 additions and 2 deletions

View File

@@ -439,8 +439,8 @@ class BTMinerAPI(BaseMinerAPI):
self,
auto: bool = True,
color: str = "red",
period: int = 2000,
duration: int = 1000,
period: int = 60,
duration: int = 20,
start: int = 0,
) -> dict:
"""Set the LED on the miner using the API.

View File

@@ -144,6 +144,9 @@ class BTMiner(BaseMiner):
async def fault_light_on(self) -> bool:
try:
data = await self.api.set_led(auto=False)
await self.api.set_led(
auto=False, color="green", start=0, period=1, duration=0
)
except APIError:
return False
if data: