Skip to content

Commit

Permalink
fix: leftowers from refactoring
Browse files Browse the repository at this point in the history
A new class was missed in NanoVNA-Saver#754
  • Loading branch information
redrathnure committed Jan 21, 2025
1 parent 504e64f commit 79aaf2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/NanoVNASaver/Hardware/NanoVNA_F_V3.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def getScreenshot(self) -> QPixmap:
logger.exception("Exception while capturing screenshot: %s", exc)
return QPixmap()

def read_features(self):
super().read_features()
def init_features(self) -> None:
super().init_features()
result = " ".join(self.exec_command("help")).split()
if "sn:" or "SN:" in result:
self.features.add("SN")
Expand Down
2 changes: 1 addition & 1 deletion src/NanoVNASaver/Hardware/NanoVNA_H4.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, iface: Interface):
if "Scan mask command" in self.features:
self.sweep_method = "scan_mask"

# def read_features(self):
# def init_features(self) -> None:
# logger.debug("read_features")
# super().read_features()
# if self.readFirmware().find("DiSlord") > 0:
Expand Down

0 comments on commit 79aaf2e

Please sign in to comment.