bug: fix errors not registering properly on braiins OS miners
This commit is contained in:
@@ -573,14 +573,18 @@ class BOSMiner(BaseMiner):
|
|||||||
board.chips = chips
|
board.chips = chips
|
||||||
board.missing = False
|
board.missing = False
|
||||||
|
|
||||||
if hb["tuner"]["statusMessages"][0] not in [
|
tuner = hb.get("tuner")
|
||||||
"Stable",
|
if tuner:
|
||||||
"Testing performance profile",
|
if msg := tuner.get("statusMessages"):
|
||||||
"Tuning individual chips"
|
if len(msg) > 0:
|
||||||
]:
|
if hb["tuner"]["statusMessages"][0] not in [
|
||||||
data.errors.append(
|
"Stable",
|
||||||
BraiinsOSError(f"Slot {_id} {hb['tuner']['statusMessages'][0]}")
|
"Testing performance profile",
|
||||||
)
|
"Tuning individual chips"
|
||||||
|
]:
|
||||||
|
data.errors.append(
|
||||||
|
BraiinsOSError(f"Slot {_id} {hb['tuner']['statusMessages'][0]}")
|
||||||
|
)
|
||||||
|
|
||||||
data.wattage = query_data["bosminer"]["info"]["workSolver"]["power"]["approxConsumptionW"]
|
data.wattage = query_data["bosminer"]["info"]["workSolver"]["power"]["approxConsumptionW"]
|
||||||
data.wattage_limit = query_data["bosminer"]["info"]["workSolver"]["power"]["limitW"]
|
data.wattage_limit = query_data["bosminer"]["info"]["workSolver"]["power"]["limitW"]
|
||||||
|
|||||||
Reference in New Issue
Block a user