bug: fix elphapex hashboard parsing
This commit is contained in:
@@ -233,9 +233,10 @@ class ElphapexMiner(StockFirmware):
|
|||||||
board_temp_data = list(
|
board_temp_data = list(
|
||||||
filter(lambda x: not x == 0, board["temp_pcb"])
|
filter(lambda x: not x == 0, board["temp_pcb"])
|
||||||
)
|
)
|
||||||
hashboards[board["index"]].temp = sum(board_temp_data) / len(
|
if not len(board_temp_data) == 0:
|
||||||
board_temp_data
|
hashboards[board["index"]].temp = sum(board_temp_data) / len(
|
||||||
)
|
board_temp_data
|
||||||
|
)
|
||||||
chip_temp_data = list(
|
chip_temp_data = list(
|
||||||
filter(lambda x: not x == "", board["temp_chip"])
|
filter(lambda x: not x == "", board["temp_chip"])
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user