Skip to content

Commit

Permalink
bug: fix false positives as VNish before checking other firmware types.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan committed Sep 1, 2024
1 parent c152550 commit 36e9201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyasic/miners/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,6 @@ def _parse_socket_type(data: str) -> MinerTypes | None:
return MinerTypes.BRAIINS_OS
if "BTMINER" in upper_data or "BITMICRO" in upper_data:
return MinerTypes.WHATSMINER
if "VNISH" in upper_data or "DEVICE PATH" in upper_data:
return MinerTypes.VNISH
if "HIVEON" in upper_data:
return MinerTypes.HIVEON
if "LUXMINER" in upper_data:
Expand All @@ -717,6 +715,8 @@ def _parse_socket_type(data: str) -> MinerTypes | None:
return MinerTypes.AVALONMINER
if "GCMINER" in upper_data or "FLUXOS" in upper_data:
return MinerTypes.AURADINE
if "VNISH" in upper_data or "DEVICE PATH" in upper_data:
return MinerTypes.VNISH

async def send_web_command(
self,
Expand Down

0 comments on commit 36e9201

Please sign in to comment.