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):
|
def _check_commands(self, *commands):
|
||||||
allowed_commands = self.get_commands()
|
allowed_commands = self.commands
|
||||||
return_commands = []
|
return_commands = []
|
||||||
for command in [*commands]:
|
|
||||||
|
for command in commands:
|
||||||
if command in allowed_commands:
|
if command in allowed_commands:
|
||||||
return_commands.append(command)
|
return_commands.append(command)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -735,6 +735,9 @@ class MinerFactory(metaclass=Singleton):
|
|||||||
try:
|
try:
|
||||||
if devdetails.get("DEVDETAILS"):
|
if devdetails.get("DEVDETAILS"):
|
||||||
model = devdetails["DEVDETAILS"][0][_devdetails_key].upper()
|
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":
|
if not model == "BITMICRO":
|
||||||
break
|
break
|
||||||
elif devdetails.get("DEVS"):
|
elif devdetails.get("DEVS"):
|
||||||
|
|||||||
Reference in New Issue
Block a user