Skip to content

Commit

Permalink
Merge pull request #8 from OpenVoiceOS/feat/mk1
Browse files Browse the repository at this point in the history
close serial port
  • Loading branch information
builderjer authored Jan 10, 2025
2 parents 0f52a7a + f123e8d commit 687e891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ovos_i2c_detection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 687e891

Please sign in to comment.