diff --git a/scripts/nmea_tcp_driver b/scripts/nmea_tcp_driver index cee95c4..b1080f5 100755 --- a/scripts/nmea_tcp_driver +++ b/scripts/nmea_tcp_driver @@ -118,9 +118,9 @@ class ReachSocketHandler: if not part or len(part) == 0: self.reconnect_to_device() continue - if part != "\n": - line += part - elif part == "\n": + if part.decode() != "\n": + line += part.decode() + else: break return line