From 0d76792f56447c695fd6ab9697d2e310ffb21fc0 Mon Sep 17 00:00:00 2001 From: Philipp Oleynik <pholey@utu.fi> Date: Mon, 3 Jan 2022 17:52:32 +0200 Subject: [PATCH] Agilent pressure bug fixed, print removed --- pumpAgilent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpAgilent.py b/pumpAgilent.py index aeac2f3..22da87c 100755 --- a/pumpAgilent.py +++ b/pumpAgilent.py @@ -79,7 +79,7 @@ class pumpAgilent: def getPressure(self): stat = self.serWriteAndRecieve(b"\002\200\062\062\064\060\003\070\067") if stat is not None: - print(":".join("{:02x}".format(ord(c)) for c in stat)) + # print(":".join("{:02x}".format(ord(c)) for c in stat)) hdr = stat.find("2240") stat = stat[hdr + 3: hdr + 11] try: -- GitLab