bug: fix bitaxe not identifying on some versions, switch to using ASICModel key.
This commit is contained in:
@@ -443,9 +443,9 @@ MINER_CLASSES = {
|
|||||||
},
|
},
|
||||||
MinerTypes.BITAXE: {
|
MinerTypes.BITAXE: {
|
||||||
None: BitAxe,
|
None: BitAxe,
|
||||||
"SUPRA": BitAxeSupra,
|
"BM1368": BitAxeSupra,
|
||||||
"ULTRA": BitAxeUltra,
|
"BM1366": BitAxeUltra,
|
||||||
"MAX": BitAxeMax,
|
"BM1397": BitAxeMax,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1024,7 +1024,7 @@ class MinerFactory:
|
|||||||
web_json_data = await self.send_web_command(ip, "/api/system/info")
|
web_json_data = await self.send_web_command(ip, "/api/system/info")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
miner_model = web_json_data["devicemodel"]
|
miner_model = web_json_data["ASICModel"]
|
||||||
if miner_model == "":
|
if miner_model == "":
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user