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