From 5ca41ea6980a6ad1e247bc3724b787156281f663 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Tue, 27 Apr 2021 17:23:03 +0200 Subject: [PATCH] Fap5 ascii can not encode characters fix --- pyren/scen_ecri_fap5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyren/scen_ecri_fap5.py b/pyren/scen_ecri_fap5.py index 43f8e68..5ba061e 100755 --- a/pyren/scen_ecri_fap5.py +++ b/pyren/scen_ecri_fap5.py @@ -218,7 +218,7 @@ def run( elm, ecu, command, data ): # # Check phase # - etat = pyren_encode(Phase_state.caracter[str(value8)]) + etat = pyren_encode(value8) if etat == get_message('ETAT1'): phase = get_message('Phase1'); pfe = 0 elif etat == get_message('ETAT2'): phase = get_message('Phase2'); pfe = 0 elif etat == get_message('ETAT3'): phase = get_message('Phase3'); pfe = 0 @@ -230,7 +230,7 @@ def run( elm, ecu, command, data ): # # Check result # - rescode = pyren_encode(Result_state.caracter[str(value9)]) + rescode = pyren_encode(value9) result = pyren_encode( mod_globals.language_dict[ScmSet[rescode]]) clearScreen()