Browse Source

Replace single-char S_ECHOs with S_CHAR

Scott Lahteine 8 years ago
parent
commit
de7e798e6f
2 changed files with 6 additions and 3 deletions
  1. 4
    2
      Marlin/Marlin_main.cpp
  2. 2
    1
      Marlin/configuration_store.cpp

+ 4
- 2
Marlin/Marlin_main.cpp View File

770
   if (_enqueuecommand(cmd, say_ok)) {
770
   if (_enqueuecommand(cmd, say_ok)) {
771
     SERIAL_ECHO_START;
771
     SERIAL_ECHO_START;
772
     SERIAL_ECHOPAIR(MSG_Enqueueing, cmd);
772
     SERIAL_ECHOPAIR(MSG_Enqueueing, cmd);
773
-    SERIAL_ECHOLNPGM("\"");
773
+    SERIAL_CHAR('"');
774
+    SERIAL_EOL;
774
     return true;
775
     return true;
775
   }
776
   }
776
   return false;
777
   return false;
2648
 void unknown_command_error() {
2649
 void unknown_command_error() {
2649
   SERIAL_ECHO_START;
2650
   SERIAL_ECHO_START;
2650
   SERIAL_ECHOPAIR(MSG_UNKNOWN_COMMAND, current_command);
2651
   SERIAL_ECHOPAIR(MSG_UNKNOWN_COMMAND, current_command);
2651
-  SERIAL_ECHOLNPGM("\"");
2652
+  SERIAL_CHAR('"');
2653
+  SERIAL_EOL;
2652
 }
2654
 }
2653
 
2655
 
2654
 #if ENABLED(HOST_KEEPALIVE_FEATURE)
2656
 #if ENABLED(HOST_KEEPALIVE_FEATURE)

+ 2
- 1
Marlin/configuration_store.cpp View File

383
 
383
 
384
   //  SERIAL_ECHOPAIR("Version: [", ver);
384
   //  SERIAL_ECHOPAIR("Version: [", ver);
385
   //  SERIAL_ECHOPAIR("] Stored version: [", stored_ver);
385
   //  SERIAL_ECHOPAIR("] Stored version: [", stored_ver);
386
-  //  SERIAL_ECHOLNPGM("]");
386
+  //  SERIAL_CHAR(']');
387
+  //  SERIAL_EOL;
387
 
388
 
388
   if (strncmp(version, stored_ver, 3) != 0) {
389
   if (strncmp(version, stored_ver, 3) != 0) {
389
     Config_ResetDefault();
390
     Config_ResetDefault();

Loading…
Cancel
Save