updates to set_led
Fix typo in param=auto, and set better raw defaults for flashing
This commit is contained in:
@@ -366,8 +366,8 @@ class BTMinerAPI(BaseMinerAPI):
|
|||||||
self,
|
self,
|
||||||
auto: bool = True,
|
auto: bool = True,
|
||||||
color: str = "red",
|
color: str = "red",
|
||||||
period: int = 60,
|
period: int = 400,
|
||||||
duration: int = 20,
|
duration: int = 200,
|
||||||
start: int = 0,
|
start: int = 0,
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""Set the LED on the miner using the API.
|
"""Set the LED on the miner using the API.
|
||||||
@@ -389,7 +389,7 @@ class BTMinerAPI(BaseMinerAPI):
|
|||||||
</details>
|
</details>
|
||||||
"""
|
"""
|
||||||
if auto:
|
if auto:
|
||||||
return await self.send_privileged_command("set_led", param=auto)
|
return await self.send_privileged_command("set_led", param="auto")
|
||||||
return await self.send_privileged_command(
|
return await self.send_privileged_command(
|
||||||
"set_led", color=color, period=period, duration=duration, start=start
|
"set_led", color=color, period=period, duration=duration, start=start
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user