From 22ce85d11b75c561050c0aa09533146e0e07274c Mon Sep 17 00:00:00 2001 From: Marianpol Date: Mon, 27 Dec 2021 11:32:19 +0100 Subject: [PATCH] ET002 type mismatch fix --- pyren/scen_lect_ssppx91.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyren/scen_lect_ssppx91.py b/pyren/scen_lect_ssppx91.py index 5066109..92ccdee 100644 --- a/pyren/scen_lect_ssppx91.py +++ b/pyren/scen_lect_ssppx91.py @@ -357,11 +357,11 @@ def run( elm, ecu, command, data ): print print '*'*80 - if value2 == 3 and len(readCodes) < 4: + if pyren_encode(value2) == pyren_encode(mod_globals.language_dict[ScmParam['StateNO']]) and len(readCodes) < 4: print "%-50s %-20s"%(readCodeMessage, readCode) print print "No codes read" - elif value2 == 2 and len(readCodes) < 4: + elif pyren_encode(value2) == pyren_encode(mod_globals.language_dict[ScmParam['StateYES']]) and len(readCodes) < 4: print "%-50s %-20s"%(readCodeMessage, readCode) print