From da9a4b4c436654c59316c589cde8134d963642c8 Mon Sep 17 00:00:00 2001 From: obito1903 Date: Wed, 5 Jun 2024 10:47:25 +0200 Subject: [PATCH] force header to be set at init --- obd/obd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obd/obd.py b/obd/obd.py index 5bd29e60..94fe7d77 100644 --- a/obd/obd.py +++ b/obd/obd.py @@ -56,7 +56,7 @@ def __init__(self, portstr=None, baudrate=None, protocol=None, fast=True, self.fast = fast # global switch for disabling optimizations self.timeout = timeout self.__last_command = b"" # used for running the previous command with a CR - self.__last_header = ECU_HEADER.ENGINE # for comparing with the previously used header + self.__last_header = "" # for comparing with the previously used header self.__frame_counts = {} # keeps track of the number of return frames for each command logger.info("======================= python-OBD (v%s) =======================" % __version__)