bug: fix an issue with moving board slots on BOS+.
This commit is contained in:
@@ -926,8 +926,10 @@ class BOSer(BraiinsOSFirmware):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if grpc_hashboards is not None:
|
if grpc_hashboards is not None:
|
||||||
for board in grpc_hashboards["hashboards"]:
|
grpc_boards = sorted(
|
||||||
idx = int(board["id"]) - 1
|
grpc_hashboards["hashboards"], key=lambda x: int(x["id"])
|
||||||
|
)
|
||||||
|
for idx, board in enumerate(grpc_boards):
|
||||||
if board.get("chipsCount") is not None:
|
if board.get("chipsCount") is not None:
|
||||||
hashboards[idx].chips = board["chipsCount"]
|
hashboards[idx].chips = board["chipsCount"]
|
||||||
if board.get("boardTemp") is not None:
|
if board.get("boardTemp") is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user