Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 8 months ago.
Why Serial port write method is protected ?
Hello everybody,
I don't understand why the write method of the serial port is protected ?
Any reason ?
2 Answers
9 years, 8 months ago.
All the write method does is call putc in a while loop. Defining your own function to do that may be a tiny bit messier but isn't really that much of an issue and shouldn't cause any performance hit.