Skip to content

Commit 33354ff

Browse files
committed
Update esp3d_commands.cpp
Trim space
1 parent b64161f commit 33354ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

esp3d/src/core/esp3d_commands.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,7 @@ bool ESP3DCommands::dispatch(ESP3DMessage *msg) {
14801480
// replace end of line with space
14811481
tmp.replace("\n", " ");
14821482
tmp.replace("\r", "");
1483+
tmp.trim();
14831484
tmp += "\n";
14841485
//Override lock from Marlin if error was displayed previouly preventing any update
14851486
if (ESP3DSettings::GetFirmwareTarget() == MARLIN ||

0 commit comments

Comments
 (0)