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,7 +770,8 @@ bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
770 770
   if (_enqueuecommand(cmd, say_ok)) {
771 771
     SERIAL_ECHO_START;
772 772
     SERIAL_ECHOPAIR(MSG_Enqueueing, cmd);
773
-    SERIAL_ECHOLNPGM("\"");
773
+    SERIAL_CHAR('"');
774
+    SERIAL_EOL;
774 775
     return true;
775 776
   }
776 777
   return false;
@@ -2648,7 +2649,8 @@ void gcode_get_destination() {
2648 2649
 void unknown_command_error() {
2649 2650
   SERIAL_ECHO_START;
2650 2651
   SERIAL_ECHOPAIR(MSG_UNKNOWN_COMMAND, current_command);
2651
-  SERIAL_ECHOLNPGM("\"");
2652
+  SERIAL_CHAR('"');
2653
+  SERIAL_EOL;
2652 2654
 }
2653 2655
 
2654 2656
 #if ENABLED(HOST_KEEPALIVE_FEATURE)

+ 2
- 1
Marlin/configuration_store.cpp View File

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

Loading…
Cancel
Save