Browse Source

Use SERIAL_EOL in SERIAL_PROTOCOLLN macros

Scott Lahteine 9 years ago
parent
commit
bc0fdbe88e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin.h

+ 2
- 2
Marlin/Marlin.h View File

@@ -75,8 +75,8 @@ typedef unsigned long millis_t;
75 75
 #define SERIAL_PROTOCOL(x) MYSERIAL.print(x)
76 76
 #define SERIAL_PROTOCOL_F(x,y) MYSERIAL.print(x,y)
77 77
 #define SERIAL_PROTOCOLPGM(x) serialprintPGM(PSTR(x))
78
-#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x),MYSERIAL.write('\n'); }while(0)
79
-#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x)),MYSERIAL.write('\n'); }while(0)
78
+#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x); SERIAL_EOL; }while(0)
79
+#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x)); SERIAL_EOL; }while(0)
80 80
 
81 81
 
82 82
 extern const char errormagic[] PROGMEM;

Loading…
Cancel
Save