Unbuffered serial automatic newline

I am using unbufferedSerial to communicate with a device that expects carriage return at the end of each command. My microcontroller seems to add a new line after every call to unbufferedSerial.write, this causes issues for my device.

Is this a feature of mbed? If yes, is there a way to avoid or deactivate this?

The mcu is a stm32l433.

Issue is solved, the problem was that I was printing one extra character and this somhow turned into a newline.

1 Like