feature: add config sending for bitaxe.

This commit is contained in:
upstreamdata
2024-06-29 15:12:33 -06:00
parent 3627194f34
commit ee1eece181
6 changed files with 55 additions and 5 deletions

View File

@@ -60,6 +60,9 @@ class MinerConfigOption(Enum):
def as_mara(self) -> dict:
return self.value.as_mara()
def as_bitaxe(self) -> dict:
return self.value.as_bitaxe()
def __call__(self, *args, **kwargs):
return self.value(*args, **kwargs)
@@ -119,6 +122,9 @@ class MinerConfigValue:
def as_mara(self) -> dict:
return {}
def as_bitaxe(self) -> dict:
return {}
def __getitem__(self, item):
try:
return getattr(self, item)