Skip to content

Commit

Permalink
Update serial echo macro to print from PGM
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMagus committed Jan 25, 2023
1 parent 9edfbbe commit 3072795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6525,7 +6525,7 @@ SERIAL_PROTOCOLPGM("\n\n");
- `String` - Message string. If omitted, a blank line will be sent.
*/
case 118: {
bool hasE, hasA = false;
bool hasE = false, hasA = false;
char *p = strchr_pointer;

for (uint8_t i = 2; i--;) {
Expand All @@ -6540,7 +6540,7 @@ SERIAL_PROTOCOLPGM("\n\n");
}

if (hasE) SERIAL_ECHO_START;
if (hasA) SERIAL_ECHO("//");
if (hasA) SERIAL_ECHOPGM("//");

SERIAL_ECHOLN(p);
}
Expand Down

0 comments on commit 3072795

Please sign in to comment.