Selaa lähdekoodia

Optimize SERIAL_ECHOPAIR_F

Scott Lahteine 5 vuotta sitten
vanhempi
commit
f9961ddebb
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      Marlin/src/core/serial.h

+ 2
- 2
Marlin/src/core/serial.h Näytä tiedosto

146
 #define SERIAL_ECHOPGM(S)           (serialprintPGM(PSTR(S)))
146
 #define SERIAL_ECHOPGM(S)           (serialprintPGM(PSTR(S)))
147
 #define SERIAL_ECHOLNPGM(S)         (serialprintPGM(PSTR(S "\n")))
147
 #define SERIAL_ECHOLNPGM(S)         (serialprintPGM(PSTR(S "\n")))
148
 
148
 
149
-#define SERIAL_ECHOPAIR_F(pre, V...) do{ SERIAL_ECHO(pre); SERIAL_ECHO_F(V); }while(0)
150
-#define SERIAL_ECHOLNPAIR_F(V...)    do{ SERIAL_ECHOPAIR_F(V); SERIAL_EOL(); }while(0)
149
+#define SERIAL_ECHOPAIR_F(S, V...)  do{ SERIAL_ECHOPGM(S); SERIAL_ECHO_F(V); }while(0)
150
+#define SERIAL_ECHOLNPAIR_F(V...)   do{ SERIAL_ECHOPAIR_F(V); SERIAL_EOL(); }while(0)
151
 
151
 
152
 #define SERIAL_ECHO_START()         serial_echo_start()
152
 #define SERIAL_ECHO_START()         serial_echo_start()
153
 #define SERIAL_ERROR_START()        serial_error_start()
153
 #define SERIAL_ERROR_START()        serial_error_start()

Loading…
Peruuta
Tallenna