|
@@ -84,7 +84,11 @@ const char echomagic[] PROGMEM ="echo:";
|
84
|
84
|
#define SERIAL_ECHOLN(x) SERIAL_PROTOCOLLN(x)
|
85
|
85
|
#define SERIAL_ECHOLNPGM(x) SERIAL_PROTOCOLLNPGM(x)
|
86
|
86
|
|
87
|
|
-#define SERIAL_ECHOPAIR(name,value) {SERIAL_ECHOPGM(name);SERIAL_ECHO(value);}
|
|
87
|
+#define SERIAL_ECHOPAIR(name,value) (serial_echopair_P(PSTR(name),(value)))
|
|
88
|
+
|
|
89
|
+void serial_echopair_P(const char *s_P, float v);
|
|
90
|
+void serial_echopair_P(const char *s_P, double v);
|
|
91
|
+void serial_echopair_P(const char *s_P, unsigned long v);
|
88
|
92
|
|
89
|
93
|
|
90
|
94
|
//things to write to serial from Programmemory. saves 400 to 2k of RAM.
|