From f123e8dedf9c544568860d54be4e33fb58461b2d Mon Sep 17 00:00:00 2001 From: builderjer Date: Fri, 10 Jan 2025 06:28:44 -0700 Subject: [PATCH] close ser port --- ovos_i2c_detection/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovos_i2c_detection/__init__.py b/ovos_i2c_detection/__init__.py index feeeb1d..7fca441 100644 --- a/ovos_i2c_detection/__init__.py +++ b/ovos_i2c_detection/__init__.py @@ -63,9 +63,11 @@ def is_mark_1(): while True: is_mk1 = ser.readline().decode().rstrip() if is_mk1 and "Command" in is_mk1: + ser.close() # This is a Mark 1 return True break + ser.close() return False except: return False