Browse Source

🐛 Fix anycubic_i3mega_lcd debug macros (#22820)

ellensp 2 years ago
parent
commit
7c5727e0ec
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/extui/anycubic_i3mega/anycubic_i3mega_lcd.cpp

+ 2
- 2
Marlin/src/lcd/extui/anycubic_i3mega/anycubic_i3mega_lcd.cpp View File

@@ -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))

Loading…
Cancel
Save