[mod_elm] fix soft boufrate

This commit is contained in:
ShrLnm 2022-07-29 06:01:38 +00:00
parent 9e773bb091
commit eec675cba0

View File

@ -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."