diff --git a/pyproject.toml b/pyproject.toml index 1710419..4a041df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ find = {} # Scan the project directory with the default parameters [project] name = "telemetrix" -version = "1.41" +version = "1.42" authors = [ { name="Alan Yorinks", email="MisterYsLab@gmail.com" }, ] diff --git a/telemetrix/private_constants.py b/telemetrix/private_constants.py index f530d97..bc8919a 100644 --- a/telemetrix/private_constants.py +++ b/telemetrix/private_constants.py @@ -103,7 +103,7 @@ class PrivateConstants: FEATURES = 20 DEBUG_PRINT = 99 - TELEMETRIX_VERSION = "1.41" + TELEMETRIX_VERSION = "1.42" # reporting control REPORTING_DISABLE_ALL = 0 diff --git a/telemetrix/telemetrix.py b/telemetrix/telemetrix.py index 68ffe09..59b2ff1 100644 --- a/telemetrix/telemetrix.py +++ b/telemetrix/telemetrix.py @@ -377,6 +377,8 @@ def _find_arduino(self): self.serial_port.reset_input_buffer() self._get_arduino_id() + while self.reported_arduino_id is None: + time.sleep(.2) if self.reported_arduino_id != self.arduino_instance_id: continue else: