|
@ -51,22 +51,22 @@ |
|
|
#define MYSERIAL MSerial |
|
|
#define MYSERIAL MSerial |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#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) {MYSERIAL.print(x);MYSERIAL.write('\n');} |
|
|
#define SERIAL_PROTOCOLLN(x) (MYSERIAL.print(x),MYSERIAL.write('\n')) |
|
|
#define SERIAL_PROTOCOLLNPGM(x) {serialprintPGM(PSTR(x));MYSERIAL.write('\n');} |
|
|
#define SERIAL_PROTOCOLLNPGM(x) (serialprintPGM(PSTR(x)),MYSERIAL.write('\n')) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char errormagic[] PROGMEM ="Error:"; |
|
|
const char errormagic[] PROGMEM ="Error:"; |
|
|
const char echomagic[] PROGMEM ="echo:"; |
|
|
const char echomagic[] PROGMEM ="echo:"; |
|
|
#define SERIAL_ERROR_START serialprintPGM(errormagic); |
|
|
#define SERIAL_ERROR_START (serialprintPGM(errormagic)) |
|
|
#define SERIAL_ERROR(x) SERIAL_PROTOCOL(x) |
|
|
#define SERIAL_ERROR(x) SERIAL_PROTOCOL(x) |
|
|
#define SERIAL_ERRORPGM(x) SERIAL_PROTOCOLPGM(x) |
|
|
#define SERIAL_ERRORPGM(x) SERIAL_PROTOCOLPGM(x) |
|
|
#define SERIAL_ERRORLN(x) SERIAL_PROTOCOLLN(x) |
|
|
#define SERIAL_ERRORLN(x) SERIAL_PROTOCOLLN(x) |
|
|
#define SERIAL_ERRORLNPGM(x) SERIAL_PROTOCOLLNPGM(x) |
|
|
#define SERIAL_ERRORLNPGM(x) SERIAL_PROTOCOLLNPGM(x) |
|
|
|
|
|
|
|
|
#define SERIAL_ECHO_START serialprintPGM(echomagic); |
|
|
#define SERIAL_ECHO_START (serialprintPGM(echomagic)) |
|
|
#define SERIAL_ECHO(x) SERIAL_PROTOCOL(x) |
|
|
#define SERIAL_ECHO(x) SERIAL_PROTOCOL(x) |
|
|
#define SERIAL_ECHOPGM(x) SERIAL_PROTOCOLPGM(x) |
|
|
#define SERIAL_ECHOPGM(x) SERIAL_PROTOCOLPGM(x) |
|
|
#define SERIAL_ECHOLN(x) SERIAL_PROTOCOLLN(x) |
|
|
#define SERIAL_ECHOLN(x) SERIAL_PROTOCOLLN(x) |
|
|