Fap5 ascii can not encode characters fix

This commit is contained in:
Marianpol 2021-04-27 17:23:03 +02:00
parent 663f272ff6
commit 5ca41ea698

View File

@ -218,7 +218,7 @@ def run( elm, ecu, command, data ):
# #
# Check phase # 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 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('ETAT2'): phase = get_message('Phase2'); pfe = 0
elif etat == get_message('ETAT3'): phase = get_message('Phase3'); 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 # Check result
# #
rescode = pyren_encode(Result_state.caracter[str(value9)]) rescode = pyren_encode(value9)
result = pyren_encode( mod_globals.language_dict[ScmSet[rescode]]) result = pyren_encode( mod_globals.language_dict[ScmSet[rescode]])
clearScreen() clearScreen()