Python serial read corrupting print statements
Python serial read corrupting print statements Question: I have this bizarre situation where reading from a serial port is appearing to corrupt calls to print. This code: ser = serial.Serial(‘COM13’, 115200, timeout=5) ser.reset_input_buffer() ser.reset_output_buffer() ser.write("statn".encode(‘utf-8’)) ser.flush() for i in range(10): print(f"read: <{self.ser.read(10).decode(‘utf-8’)}>") outputs >ead: <s read: < > read: <> read: <> read: <> … …