Add hooks for M32 (not S)
This commit is contained in:
@@ -22,3 +22,12 @@ class M32S(BaseMiner):
|
||||
self.model = "M32S"
|
||||
self.nominal_chips = 78
|
||||
self.fan_count = 2
|
||||
|
||||
|
||||
class M32(BaseMiner):
|
||||
def __init__(self, ip: str):
|
||||
super().__init__()
|
||||
self.ip = ip
|
||||
self.model = "M32"
|
||||
self.nominal_chips = 74
|
||||
self.fan_count = 2
|
||||
|
||||
@@ -19,4 +19,4 @@ from .M30S_Plus_Plus import M30SPlusPlus, M30SPlusPlusVG30, M30SPlusPlusVG40
|
||||
from .M31S import M31S
|
||||
from .M31S_Plus import M31SPlus, M31SPlusVE20
|
||||
|
||||
from .M32S import M32S
|
||||
from .M32S import M32S, M32
|
||||
|
||||
@@ -200,6 +200,10 @@ MINER_CLASSES = {
|
||||
"Default": BTMinerM32S,
|
||||
"BTMiner": BTMinerM32S,
|
||||
},
|
||||
"M32": {
|
||||
"Default": BTMinerM32,
|
||||
"BTMiner": BTMinerM32,
|
||||
},
|
||||
"AvalonMiner 721": {
|
||||
"Default": CGMinerAvalon721,
|
||||
"CGMiner": CGMinerAvalon721,
|
||||
|
||||
@@ -13,10 +13,19 @@
|
||||
# limitations under the License.
|
||||
|
||||
from pyasic.miners._backends import BTMiner # noqa - Ignore access to _module
|
||||
from pyasic.miners._types import M32S # noqa - Ignore access to _module
|
||||
from pyasic.miners._types import (
|
||||
M32S,
|
||||
M32,
|
||||
) # noqa - Ignore access to _module
|
||||
|
||||
|
||||
class BTMinerM32S(BTMiner, M32S):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.ip = ip
|
||||
|
||||
|
||||
class BTMinerM32(BTMiner, M32):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.ip = ip
|
||||
|
||||
@@ -34,4 +34,4 @@ from .M30S_Plus_Plus import (
|
||||
from .M31S import BTMinerM31S
|
||||
from .M31S_Plus import BTMinerM31SPlus, BTMinerM31SPlusVE20
|
||||
|
||||
from .M32S import BTMinerM32S
|
||||
from .M32S import BTMinerM32S, BTMinerM32
|
||||
|
||||
Reference in New Issue
Block a user