Fix appending newline character in puts* methods

pull/124/head
D.R.racer 2021-09-27 11:13:09 +02:00
parent 963b21183f
commit 58c538e3b6
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