bug: fix new issue with X19 "NoPic" on braiins.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user