Skip to content

Commit

Permalink
Commented out unicode error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zlite authored Sep 23, 2023
1 parent 9f91ad1 commit b95ad22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions donkeycar/parts/serial_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def read(self, count:int=0) -> Tuple[bool, str]:
try:
return (ok, bytestring.decode(self.charset))
except UnicodeDecodeError:
# the first read often includes mis-framed garbase
# the first read often includes mis-framed garbage
return (False, "")

def readln(self) -> Tuple[bool, str]:
Expand Down Expand Up @@ -139,7 +139,7 @@ def readln(self) -> Tuple[bool, str]:
return (False, "")
except UnicodeDecodeError:
# the first read often includes mis-framed garbase
logger.warn("failed decoding unicode line from serial port")
# logger.warn("failed decoding unicode line from serial port")
return (False, "")

def writeBytes(self, value:bytes):
Expand Down

0 comments on commit b95ad22

Please sign in to comment.