Browse Source

Tweak serialprintPGM

Scott Lahteine 8 years ago
parent
commit
14a03727e1
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      Marlin/Marlin.h

+ 1
- 5
Marlin/Marlin.h View File

@@ -103,11 +103,7 @@ FORCE_INLINE void serial_echopair_P(const char* s_P, void *v) { serial_echopair_
103 103
 
104 104
 // Things to write to serial from Program memory. Saves 400 to 2k of RAM.
105 105
 FORCE_INLINE void serialprintPGM(const char* str) {
106
-  char ch;
107
-  while ((ch = pgm_read_byte(str))) {
108
-    MYSERIAL.write(ch);
109
-    str++;
110
-  }
106
+  while (char ch = pgm_read_byte(str++)) MYSERIAL.write(ch);
111 107
 }
112 108
 
113 109
 void idle(

Loading…
Cancel
Save