|
@@ -79,9 +79,9 @@ extern FILE _uartout;
|
|
|
#define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y))
|
|
|
#define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x)))
|
|
|
#define SERIAL_PROTOCOLRPGM(x) (serialprintPGM((x)))
|
|
|
-#define SERIAL_PROTOCOLLN(x) (MYSERIAL.println(x)/*,MYSERIAL.write('\n')*/)
|
|
|
-#define SERIAL_PROTOCOLLNPGM(x) (serialprintPGM(PSTR(x)),MYSERIAL.println()/*write('\n')*/)
|
|
|
-#define SERIAL_PROTOCOLLNRPGM(x) (serialprintPGM((x)),MYSERIAL.println()/*write('\n')*/)
|
|
|
+#define SERIAL_PROTOCOLLN(x) (MYSERIAL.println(x))
|
|
|
+#define SERIAL_PROTOCOLLNPGM(x) (serialprintlnPGM(PSTR(x)))
|
|
|
+#define SERIAL_PROTOCOLLNRPGM(x) (serialprintlnPGM((x)))
|
|
|
|
|
|
|
|
|
extern const char errormagic[] PROGMEM;
|
|
@@ -115,6 +115,9 @@ void serial_echopair_P(const char *s_P, unsigned long v);
|
|
|
// I'd rather skip a few CPU ticks than 5.5KB (!!) of FLASH
|
|
|
void serialprintPGM(const char *str);
|
|
|
|
|
|
+//The "ln" variant of the function above.
|
|
|
+void serialprintlnPGM(const char *str);
|
|
|
+
|
|
|
bool is_buffer_empty();
|
|
|
void process_commands();
|
|
|
void ramming();
|