Browse Source

Use SERIAL_EOL in SERIAL_PROTOCOLLN macros

pull/1/head
Scott Lahteine 9 years ago
committed by Richard Wackerbarth
parent
commit
bc0fdbe88e
  1. 4
      Marlin/Marlin.h

4
Marlin/Marlin.h

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

Loading…
Cancel
Save