|
@@ -38,8 +38,8 @@
|
38
|
38
|
#define SEND(x) send(x)
|
39
|
39
|
#define SENDLINE(x) sendLine(x)
|
40
|
40
|
#if ENABLED(ANYCUBIC_LCD_DEBUG)
|
41
|
|
- #define SENDLINE_DBG_PGM(x,y) (sendLine_P(PSTR(x)), SERIAL_ECHOLNPGM(y))
|
42
|
|
- #define SENDLINE_DBG_PGM_VAL(x,y,z) (sendLine_P(PSTR(x)), SERIAL_ECHOPGM(y), SERIAL_ECHOLN(z))
|
|
41
|
+ #define SENDLINE_DBG_PGM(x,y) do{ sendLine_P(PSTR(x)); SERIAL_ECHOLNPGM(y); }while(0)
|
|
42
|
+ #define SENDLINE_DBG_PGM_VAL(x,y,z) do{ sendLine_P(PSTR(x)); SERIAL_ECHOLNPGM(y, z); }while(0)
|
43
|
43
|
#else
|
44
|
44
|
#define SENDLINE_DBG_PGM(x,y) sendLine_P(PSTR(x))
|
45
|
45
|
#define SENDLINE_DBG_PGM_VAL(x,y,z) sendLine_P(PSTR(x))
|