only check for newline instead of newline and carraiage return
only check for newline instead of newline and carraiage return

Co-authored-by: Cristian Maglie <f19af07ee36e7fc77db029a771cf06fe74bdb8a9@bug.st>
bugst/go-serial