From eec675cba085f82bcb67a50fa7f14ef5b1387abc Mon Sep 17 00:00:00 2001 From: ShrLnm Date: Fri, 29 Jul 2022 06:01:38 +0000 Subject: [PATCH] [mod_elm] fix soft boufrate --- pyren/mod_elm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyren/mod_elm.py b/pyren/mod_elm.py index 8fcce3b..6622cf2 100644 --- a/pyren/mod_elm.py +++ b/pyren/mod_elm.py @@ -465,7 +465,7 @@ class Port: continue self.buff += byte tc = time.time () - if 'ELM' or 'STN' in self.buff: + if ('ELM' in self.buff) or ('STN' in self.buff): break if (tc - tb) > 1: print "ERROR - rate not supported. Let's go back."