Browse Source

Replace single-char S_ECHOs with S_CHAR

pull/1/head
Scott Lahteine 8 years ago
parent
commit
de7e798e6f
  1. 6
      Marlin/Marlin_main.cpp
  2. 3
      Marlin/configuration_store.cpp

6
Marlin/Marlin_main.cpp

@ -770,7 +770,8 @@ bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
if (_enqueuecommand(cmd, say_ok)) { if (_enqueuecommand(cmd, say_ok)) {
SERIAL_ECHO_START; SERIAL_ECHO_START;
SERIAL_ECHOPAIR(MSG_Enqueueing, cmd); SERIAL_ECHOPAIR(MSG_Enqueueing, cmd);
SERIAL_ECHOLNPGM("\""); SERIAL_CHAR('"');
SERIAL_EOL;
return true; return true;
} }
return false; return false;
@ -2648,7 +2649,8 @@ void gcode_get_destination() {
void unknown_command_error() { void unknown_command_error() {
SERIAL_ECHO_START; SERIAL_ECHO_START;
SERIAL_ECHOPAIR(MSG_UNKNOWN_COMMAND, current_command); SERIAL_ECHOPAIR(MSG_UNKNOWN_COMMAND, current_command);
SERIAL_ECHOLNPGM("\""); SERIAL_CHAR('"');
SERIAL_EOL;
} }
#if ENABLED(HOST_KEEPALIVE_FEATURE) #if ENABLED(HOST_KEEPALIVE_FEATURE)

3
Marlin/configuration_store.cpp

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

Loading…
Cancel
Save