Browse Source

Add _P variants to debug_out

Scott Lahteine 5 years ago
parent
commit
4718b8ad02
1 changed files with 37 additions and 21 deletions
  1. 37
    21
      Marlin/src/core/debug_out.h

+ 37
- 21
Marlin/src/core/debug_out.h View File

@@ -35,11 +35,16 @@
35 35
 #undef DEBUG_ECHO_F
36 36
 #undef DEBUG_ECHOLN
37 37
 #undef DEBUG_ECHOPGM
38
-#undef DEBUG_ECHOLNPGM
38
+#undef DEBUG_ECHOPGM_P
39
+#undef DEBUG_ECHOLNPGM_P
39 40
 #undef DEBUG_ECHOPAIR
41
+#undef DEBUG_ECHOPAIR_P
40 42
 #undef DEBUG_ECHOPAIR_F
43
+#undef DEBUG_ECHOPAIR_F_P
41 44
 #undef DEBUG_ECHOLNPAIR
45
+#undef DEBUG_ECHOLNPAIR_P
42 46
 #undef DEBUG_ECHOLNPAIR_F
47
+#undef DEBUG_ECHOLNPAIR_F_P
43 48
 #undef DEBUG_ECHO_MSG
44 49
 #undef DEBUG_ERROR_MSG
45 50
 #undef DEBUG_EOL
@@ -56,11 +61,16 @@
56 61
   #define DEBUG_ECHO_F            SERIAL_ECHO_F
57 62
   #define DEBUG_ECHOLN            SERIAL_ECHOLN
58 63
   #define DEBUG_ECHOPGM           SERIAL_ECHOPGM
59
-  #define DEBUG_ECHOLNPGM         SERIAL_ECHOLNPGM
64
+  #define DEBUG_ECHOPGM_P         SERIAL_ECHOPGM_P
65
+  #define DEBUG_ECHOLNPGM_P       SERIAL_ECHOLNPGM_P
60 66
   #define DEBUG_ECHOPAIR          SERIAL_ECHOPAIR
67
+  #define DEBUG_ECHOPAIR_P        SERIAL_ECHOPAIR_P
61 68
   #define DEBUG_ECHOPAIR_F        SERIAL_ECHOPAIR_F
69
+  #define DEBUG_ECHOPAIR_F_P      SERIAL_ECHOPAIR_F_P
62 70
   #define DEBUG_ECHOLNPAIR        SERIAL_ECHOLNPAIR
71
+  #define DEBUG_ECHOLNPAIR_P      SERIAL_ECHOLNPAIR_P
63 72
   #define DEBUG_ECHOLNPAIR_F      SERIAL_ECHOLNPAIR_F
73
+  #define DEBUG_ECHOLNPAIR_F_P    SERIAL_ECHOLNPAIR_F_P
64 74
   #define DEBUG_ECHO_MSG          SERIAL_ECHO_MSG
65 75
   #define DEBUG_ERROR_MSG         SERIAL_ERROR_MSG
66 76
   #define DEBUG_EOL               SERIAL_EOL
@@ -68,25 +78,31 @@
68 78
   #define DEBUG_XYZ               SERIAL_XYZ
69 79
   #define DEBUG_DELAY(ms)         serial_delay(ms)
70 80
 #else
71
-  #define DEBUG_PRINT_P(P)        NOOP
72
-  #define DEBUG_ECHO_START()      NOOP
73
-  #define DEBUG_ERROR_START()     NOOP
74
-  #define DEBUG_CHAR(...)         NOOP
75
-  #define DEBUG_ECHO(...)         NOOP
76
-  #define DEBUG_ECHO_F(...)       NOOP
77
-  #define DEBUG_ECHOLN(...)       NOOP
78
-  #define DEBUG_ECHOPGM(...)      NOOP
79
-  #define DEBUG_ECHOLNPGM(...)    NOOP
80
-  #define DEBUG_ECHOPAIR(...)     NOOP
81
-  #define DEBUG_ECHOPAIR_F(...)   NOOP
82
-  #define DEBUG_ECHOLNPAIR(...)   NOOP
83
-  #define DEBUG_ECHOLNPAIR_F(...) NOOP
84
-  #define DEBUG_ECHO_MSG(...)     NOOP
85
-  #define DEBUG_ERROR_MSG(...)    NOOP
86
-  #define DEBUG_EOL()             NOOP
87
-  #define DEBUG_POS(...)          NOOP
88
-  #define DEBUG_XYZ(...)          NOOP
89
-  #define DEBUG_DELAY(...)        NOOP
81
+  #define DEBUG_PRINT_P(P)          NOOP
82
+  #define DEBUG_ECHO_START()        NOOP
83
+  #define DEBUG_ERROR_START()       NOOP
84
+  #define DEBUG_CHAR(...)           NOOP
85
+  #define DEBUG_ECHO(...)           NOOP
86
+  #define DEBUG_ECHO_F(...)         NOOP
87
+  #define DEBUG_ECHOLN(...)         NOOP
88
+  #define DEBUG_ECHOPGM(...)        NOOP
89
+  #define DEBUG_ECHOPGM_P(...)      NOOP
90
+  #define DEBUG_ECHOLNPGM(...)      NOOP
91
+  #define DEBUG_ECHOLNPGM_P(...)    NOOP
92
+  #define DEBUG_ECHOPAIR(...)       NOOP
93
+  #define DEBUG_ECHOPAIR_P(...)     NOOP
94
+  #define DEBUG_ECHOPAIR_F(...)     NOOP
95
+  #define DEBUG_ECHOPAIR_F_P(...)   NOOP
96
+  #define DEBUG_ECHOLNPAIR(...)     NOOP
97
+  #define DEBUG_ECHOLNPAIR_P(...)   NOOP
98
+  #define DEBUG_ECHOLNPAIR_F(...)   NOOP
99
+  #define DEBUG_ECHOLNPAIR_F_P(...) NOOP
100
+  #define DEBUG_ECHO_MSG(...)       NOOP
101
+  #define DEBUG_ERROR_MSG(...)      NOOP
102
+  #define DEBUG_EOL()               NOOP
103
+  #define DEBUG_POS(...)            NOOP
104
+  #define DEBUG_XYZ(...)            NOOP
105
+  #define DEBUG_DELAY(...)          NOOP
90 106
 #endif
91 107
 
92 108
 #undef DEBUG_OUT

Loading…
Cancel
Save