feature: add S19+.

This commit is contained in:
UpstreamData
2023-09-19 13:59:03 -06:00
parent 9f6235a0fc
commit 50586f1ce7
5 changed files with 17 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ from pyasic.miners.types import (
S19j,
S19jNoPIC,
S19jPro,
S19Plus,
S19Pro,
S19ProPlus,
)
@@ -34,6 +35,10 @@ class BMMinerS19(AntminerModern, S19):
pass
class BMMinerS19Plus(AntminerModern, S19Plus):
pass
class BMMinerS19i(AntminerModern, S19i):
pass

View File

@@ -23,6 +23,7 @@ from .S19 import (
BMMinerS19jNoPIC,
BMMinerS19jPro,
BMMinerS19L,
BMMinerS19Plus,
BMMinerS19Pro,
BMMinerS19ProPlus,
BMMinerS19XP,

View File

@@ -86,6 +86,7 @@ MINER_CLASSES = {
"ANTMINER S19 PRO": BMMinerS19Pro,
"ANTMINER S19J": BMMinerS19j,
"ANTMINER S19I": BMMinerS19i,
"ANTMINER S19+": BMMinerS19Plus,
"ANTMINER S19J88NOPIC": BMMinerS19jNoPIC,
"ANTMINER S19PRO+": BMMinerS19ProPlus,
"ANTMINER S19J PRO": BMMinerS19jPro,

View File

@@ -53,6 +53,15 @@ class S19i(AntMiner): # noqa - ignore ABC method implementation
self.fan_count = 4
class S19Plus(AntMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str, api_ver: str = "0.0.0"):
super().__init__(ip, api_ver)
self.ip = ip
self.model = "S19+"
self.nominal_chips = 80
self.fan_count = 4
class S19ProPlus(AntMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str, api_ver: str = "0.0.0"):
super().__init__(ip, api_ver)

View File

@@ -25,6 +25,7 @@ from .S19 import (
S19jNoPIC,
S19jPro,
S19NoPIC,
S19Plus,
S19Pro,
S19ProPlus,
)