Skip to content

Commit d3dc8eb

Browse files
ellenspmh-dm
authored andcommitted
🐛 Fix anycubic_i3mega_lcd debug macros (MarlinFirmware#22820)
1 parent fa8f786 commit d3dc8eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Marlin/src/lcd/extui/anycubic_i3mega/anycubic_i3mega_lcd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#define SEND(x) send(x)
3939
#define SENDLINE(x) sendLine(x)
4040
#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)
4343
#else
4444
#define SENDLINE_DBG_PGM(x,y) sendLine_P(PSTR(x))
4545
#define SENDLINE_DBG_PGM_VAL(x,y,z) sendLine_P(PSTR(x))

0 commit comments

Comments
 (0)