Tweak serialprintPGM
This commit is contained in:
parent
2f223b8c79
commit
14a03727e1
|
@ -103,11 +103,7 @@ FORCE_INLINE void serial_echopair_P(const char* s_P, void *v) { serial_echopair_
|
||||||
|
|
||||||
// Things to write to serial from Program memory. Saves 400 to 2k of RAM.
|
// Things to write to serial from Program memory. Saves 400 to 2k of RAM.
|
||||||
FORCE_INLINE void serialprintPGM(const char* str) {
|
FORCE_INLINE void serialprintPGM(const char* str) {
|
||||||
char ch;
|
while (char ch = pgm_read_byte(str++)) MYSERIAL.write(ch);
|
||||||
while ((ch = pgm_read_byte(str))) {
|
|
||||||
MYSERIAL.write(ch);
|
|
||||||
str++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void idle(
|
void idle(
|
||||||
|
|
Loading…
Reference in a new issue