Skip to content

Commit 4050c6e

Browse files
committed
[terminal] fixed mistake in connection test
The EOM characters were added to the test command string, even tho those are already added by the exchange method. This caused the test to fail with a DNA instrument.
1 parent 50377e2 commit 4050c6e

File tree

1 file changed

+2
-2
lines changed
  • src/instrumentman/terminal

1 file changed

+2
-2
lines changed

src/instrumentman/terminal/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ def btn_test_com_pressed(self, event: Button.Pressed) -> None:
448448
) as com:
449449
match self.query_one("#select_protocol", Select).value:
450450
case Protocol.GEOCOM:
451-
ans = com.exchange(r"%R1Q,0:\r\n")
451+
ans = com.exchange(r"%R1Q,0:")
452452
if ans != "%R1P,0,0:0":
453453
raise Exception("Invalid response.")
454454
case Protocol.GSIDNA:
455-
ans = com.exchange(r"a\r\n")
455+
ans = com.exchange(r"a")
456456
if ans != "?":
457457
raise Exception("Invalid response.")
458458

0 commit comments

Comments
 (0)