Reduce storage requirements for strings, make some PGM
This commit is contained in:
parent
fdb6533730
commit
bd491818d6
11 changed files with 139 additions and 151 deletions
|
|
@ -84,8 +84,9 @@ typedef unsigned long millis_t;
|
|||
#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); SERIAL_EOL; }while(0)
|
||||
#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x)); SERIAL_EOL; }while(0)
|
||||
#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x "\n")); }while(0)
|
||||
|
||||
#define SERIAL_PROTOCOLPAIR(name, value) SERIAL_ECHOPAIR(name, value)
|
||||
|
||||
extern const char errormagic[] PROGMEM;
|
||||
extern const char echomagic[] PROGMEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue