Fix appending newline character in puts* methods

pull/122/head
D.R.racer 2021-09-27 11:13:09 +02:00 committed by DRracer
parent 304988fc6c
commit 43c953b7f1
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ void USART::puts(const char *str) {
while (*str) {
Write(*str++);
}
Write('\n');
}
void USART::puts_P(const char *str) {
@ -76,6 +77,7 @@ void USART::puts_P(const char *str) {
while ((c = pgm_read_byte(*str++)) != 0) {
Write(c);
}
Write('\n');
}
} // namespace usart