From a401d738df55247f9703b1d27afb75cf6e007c22 Mon Sep 17 00:00:00 2001 From: Richard Wackerbarth Date: Mon, 6 Jul 2015 17:55:47 -0500 Subject: [PATCH] There is an echo in here --- Marlin/Marlin.h | 2 ++ Marlin/Marlin_main.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Marlin/Marlin.h b/Marlin/Marlin.h index ccaf269c4a..1c3d966bdd 100644 --- a/Marlin/Marlin.h +++ b/Marlin/Marlin.h @@ -88,6 +88,8 @@ extern const char echomagic[] PROGMEM; #define SERIAL_ECHOPAIR(name,value) do{ serial_echopair_P(PSTR(name),(value)); }while(0) +void serial_echopair_P(const char *s_P, int v); +void serial_echopair_P(const char *s_P, long v); void serial_echopair_P(const char *s_P, float v); void serial_echopair_P(const char *s_P, double v); void serial_echopair_P(const char *s_P, unsigned long v); diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 5e7ea46ab3..31af9957a2 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -418,6 +418,8 @@ void plan_arc(float target[NUM_AXIS], float *offset, uint8_t clockwise); bool setTargetedHotend(int code); +void serial_echopair_P(const char *s_P, int v) { serialprintPGM(s_P); SERIAL_ECHO(v); } +void serial_echopair_P(const char *s_P, long v) { serialprintPGM(s_P); SERIAL_ECHO(v); } void serial_echopair_P(const char *s_P, float v) { serialprintPGM(s_P); SERIAL_ECHO(v); } void serial_echopair_P(const char *s_P, double v) { serialprintPGM(s_P); SERIAL_ECHO(v); } void serial_echopair_P(const char *s_P, unsigned long v) { serialprintPGM(s_P); SERIAL_ECHO(v); }