Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymo111 committed Oct 11, 2023
1 parent bc13a14 commit 4775897
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nexus/CCSerial/CCSerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def close(self):
"""
self.ser.close()

def _readline_to_list(self) -> list[str] | False:
def _readline_to_list(self) -> list[str]:
"""
Read a line from the serial device and split it into a list
:return: List of strings if read was successful, False otherwise
:return: List of strings if read was successful, empty list otherwise
"""
res = self.ser.readline().decode("utf-8")
return res.strip().split(" ") if res[-1] == "\n" else False
return res.strip().split(" ") if res[-1] == "\n" else []

def get_device_id(self) -> str:
"""
Expand Down

0 comments on commit 4775897

Please sign in to comment.