From 12c90d47cbd968c9d8b2cb605116469625b859de Mon Sep 17 00:00:00 2001 From: Marianpol Date: Sun, 9 Feb 2020 23:42:53 +0100 Subject: [PATCH] Variables name changed --- pyren/scen_ecri_counter2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyren/scen_ecri_counter2.py b/pyren/scen_ecri_counter2.py index 0ce8bc5..31a2171 100644 --- a/pyren/scen_ecri_counter2.py +++ b/pyren/scen_ecri_counter2.py @@ -78,9 +78,9 @@ def run( elm, ecu, command, data ): mnemo1 = mnemonics[0] mnemo2 = mnemonics[1] - byte1 = int(mnemo1[-2:]) - byte2 = int(re.findall("\d+", mnemo2)[1]) - byteCount = byte2 - byte1 - 1 + byteFrom = int(mnemo1[-2:]) + byteTo = int(re.findall("\d+", mnemo2)[1]) + byteCount = byteTo - byteFrom - 1 resetBytes = byteCount * "00" mnemo1Data = mod_ecu_mnemonic.get_mnemonic(ecu.Mnemonics[mnemo1], ecu.Services, elm, 1)