From 0ff90a7d8acadf3dae6873b329d559995cc77290 Mon Sep 17 00:00:00 2001 From: Furtif Date: Sat, 28 Sep 2024 00:29:50 +0200 Subject: [PATCH] leave for test . --- ecu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecu.py b/ecu.py index 6da480d..456e511 100644 --- a/ecu.py +++ b/ecu.py @@ -646,8 +646,9 @@ def setValue(self, value, bytes_list, dataitem, ecu_endian, test_mode=False): try: valueasint = int("0b" + requestasbin, 2) except ValueError: + # this need a break maybe empty and or raise, try empty. + # raise (_("Value of this stuff need a bypass gateway maybe. Value:") + " %s" % requestasbin) print (_("Value error of this stuff need a bypass gateway maybe. Value:") + " %s" % requestasbin) - # this need a break maybe empty and or raise, try empty.. return {} valueashex = hex(valueasint)[2:].replace("L", "").zfill(numreqbytes * 2).upper()