Use SERIAL_EOL in SERIAL_PROTOCOLLN macros
This commit is contained in:
parent
d78ebbc0e9
commit
bc0fdbe88e
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ typedef unsigned long millis_t;
|
||||||
#define SERIAL_PROTOCOL(x) MYSERIAL.print(x)
|
#define SERIAL_PROTOCOL(x) MYSERIAL.print(x)
|
||||||
#define SERIAL_PROTOCOL_F(x,y) MYSERIAL.print(x,y)
|
#define SERIAL_PROTOCOL_F(x,y) MYSERIAL.print(x,y)
|
||||||
#define SERIAL_PROTOCOLPGM(x) serialprintPGM(PSTR(x))
|
#define SERIAL_PROTOCOLPGM(x) serialprintPGM(PSTR(x))
|
||||||
#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(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)),MYSERIAL.write('\n'); }while(0)
|
#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x)); SERIAL_EOL; }while(0)
|
||||||
|
|
||||||
|
|
||||||
extern const char errormagic[] PROGMEM;
|
extern const char errormagic[] PROGMEM;
|
||||||
|
|
Reference in a new issue