Detect incompatible scan commands

pull/36/head
Rune B. Broberg 2019-10-09 20:27:02 +02:00
rodzic 96e1c71e10
commit 1038a7c5c8
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -183,7 +183,10 @@ class NanoVNA(VNA):
self.version = Version(self.readVersion())
logger.debug("Testing against 0.2.0")
if self.version >= Version("0.2.0"):
if self.version.version_string.find("extended with scan") > 0:
logger.debug("Incompatible scan command detected.")
self.useScan = False
elif self.version >= Version("0.2.0"):
logger.debug("Newer than 0.2.0, using new scan command.")
self.useScan = True
else: