fixed a bug with some versions of whatsminer and improved logging

This commit is contained in:
UpstreamData
2022-06-03 09:35:55 -06:00
parent c7d73276c8
commit 7a5a0b287c
7 changed files with 49 additions and 19 deletions

View File

@@ -1,8 +1,14 @@
from miners._backends import BTMiner # noqa - Ignore access to _module
from miners._types import M31SPlus # noqa - Ignore access to _module
from miners._types import M31SPlus, M31SPlusVE20 # noqa - Ignore access to _module
class BTMinerM31SPlus(BTMiner, M31SPlus):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip
class BTMinerM31SPlusVE20(BTMiner, M31SPlusVE20):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip