bug: fix an issue with moving board slots on BOS+.

This commit is contained in:
Upstream Data
2024-09-24 12:50:56 -06:00
parent 28f4e16662
commit 0ecab5fdd4

View File

@@ -926,8 +926,10 @@ class BOSer(BraiinsOSFirmware):
pass
if grpc_hashboards is not None:
for board in grpc_hashboards["hashboards"]:
idx = int(board["id"]) - 1
grpc_boards = sorted(
grpc_hashboards["hashboards"], key=lambda x: int(x["id"])
)
for idx, board in enumerate(grpc_boards):
if board.get("chipsCount") is not None:
hashboards[idx].chips = board["chipsCount"]
if board.get("boardTemp") is not None: