From 92d9a8022dedc0161d0eea9cf23fc1b0f316d214 Mon Sep 17 00:00:00 2001 From: quackerd Date: Sat, 22 Jan 2022 05:43:34 +0800 Subject: [PATCH] a --- libptqs1005/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libptqs1005/__init__.py b/libptqs1005/__init__.py index 9dfafe8..04abdf7 100644 --- a/libptqs1005/__init__.py +++ b/libptqs1005/__init__.py @@ -101,7 +101,7 @@ class PTQS1005Driver: self.ser.write(cmd) self.ser.flush() time.sleep(1e-3) - resp = self.ser.read(PTQS1005AC.RESP_LEN, timeout = 3) + resp = self.ser.read(PTQS1005AC.RESP_LEN) if(len(resp) != PTQS1005AC.RESP_LEN): raise Exception("invalid response length") return PTQS1005AC(resp)