bug: fix new issue with X19 "NoPic" on braiins.

This commit is contained in:
UpstreamData
2023-03-23 08:15:21 -06:00
parent a67e4ada8e
commit 1e03ec5fa3
2 changed files with 6 additions and 2 deletions

View File

@@ -146,9 +146,10 @@ class BaseMinerAPI:
]
def _check_commands(self, *commands):
allowed_commands = self.get_commands()
allowed_commands = self.commands
return_commands = []
for command in [*commands]:
for command in commands:
if command in allowed_commands:
return_commands.append(command)
else:

View File

@@ -735,6 +735,9 @@ class MinerFactory(metaclass=Singleton):
try:
if devdetails.get("DEVDETAILS"):
model = devdetails["DEVDETAILS"][0][_devdetails_key].upper()
if " NOPIC" in model:
# Braiins OS identifies some X19 differently
model = model.replace(" NOPIC", "")
if not model == "BITMICRO":
break
elif devdetails.get("DEVS"):