diff --git a/src/NanoVNASaver/Hardware/NanoVNA_V2.py b/src/NanoVNASaver/Hardware/NanoVNA_V2.py index d9b8c1b..4af3e0b 100644 --- a/src/NanoVNASaver/Hardware/NanoVNA_V2.py +++ b/src/NanoVNASaver/Hardware/NanoVNA_V2.py @@ -85,7 +85,7 @@ class NanoVNA_V2(VNA): sleep(WRITE_SLEEP) # firmware major version of 0xff indicates dfu mode - if self.version.data["major"] == 0xFF: + if self.version.major == 0xFF: raise IOError("Device is in DFU mode") if "S21 hack" in self.features: diff --git a/src/NanoVNASaver/Settings/Sweep.py b/src/NanoVNASaver/Settings/Sweep.py index d5aef9e..58335bc 100644 --- a/src/NanoVNASaver/Settings/Sweep.py +++ b/src/NanoVNASaver/Settings/Sweep.py @@ -32,7 +32,7 @@ class SweepMode(Enum): AVERAGE = 2 -class Properties(NamedTuple): +class Properties: name: str = "" mode: "SweepMode" = SweepMode.SINGLE averages: tuple[int, int] = (3, 0)