Assume every current H4 can do 201 datapoints

pull/305/head
Holger Müller 2020-07-31 10:26:04 +02:00
rodzic 9f5f4b5870
commit 323db84ef6
1 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -27,6 +27,7 @@ class NanoVNA_H4(NanoVNA_H):
name = "NanoVNA-H4"
screenwidth = 480
screenheight = 320
valid_datapoints = (101, 11, 51, 201)
def __init__(self, iface: Interface):
super().__init__(iface)
@ -34,10 +35,10 @@ class NanoVNA_H4(NanoVNA_H):
if "Scan mask command" in self.features:
self.sweep_method = "scan_mask"
def read_features(self):
logger.debug("read_features")
super().read_features()
if self.readFirmware().find("DiSlord") > 0:
self.features.add("Customizable data points")
logger.info("VNA has 201 datapoints capability")
self.valid_datapoints = (201, 11, 51,101)
# def read_features(self):
# logger.debug("read_features")
# super().read_features()
# if self.readFirmware().find("DiSlord") > 0:
# self.features.add("Customizable data points")
# logger.info("VNA has 201 datapoints capability")
# self.valid_datapoints = (201, 11, 51,101)