mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-09 16:33:41 +00:00
Stop sweep after reset, fix failing tests
This commit is contained in:
parent
c5d045364c
commit
0fc6c912fc
10 changed files with 38 additions and 17 deletions
|
|
@ -91,13 +91,13 @@ class libreVNA:
|
|||
self.sock.send(b"\n")
|
||||
if check or (check is None and self.default_check_cmds):
|
||||
status = self.get_status(timeout=timeout)
|
||||
if self.get_status() & 0x20:
|
||||
if status & 0x20:
|
||||
raise Exception("Command Error")
|
||||
if self.get_status() & 0x10:
|
||||
if status & 0x10:
|
||||
raise Exception("Execution Error")
|
||||
if self.get_status() & 0x08:
|
||||
if status & 0x08:
|
||||
raise Exception("Device Error")
|
||||
if self.get_status() & 0x04:
|
||||
if status & 0x04:
|
||||
raise Exception("Query Error")
|
||||
return status
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue