fixed some small bugs with miner factory

This commit is contained in:
UpstreamData
2022-01-12 11:50:43 -07:00
parent cdc6c898ae
commit d5fc7650ef
2 changed files with 7 additions and 4 deletions

View File

@@ -94,7 +94,10 @@ class MinerFactory:
if "Antminer S9" in model:
# handle the different API types
if "BOSMiner" in api:
if not api:
print(ip)
miner = BOSMinerS9(str(ip))
elif "BOSMiner" in api:
miner = BOSMinerS9(str(ip))
elif "CGMiner" in api:
miner = CGMinerS9(str(ip))