Skip to content

Commit 0b8dc3a

Browse files
committed
Update esp3d_commands.cpp
Override new behavior in Marlin that prevent error to update screen e.g: No SD Card -> IP is not displayed because M117 is locked, so always unlock M117 output Do not affect M111 because it is user key, so he can type M117 first to unlock if necessary, the fix only apply to auto M117 output
1 parent 1a0928e commit 0b8dc3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

esp3d/src/core/esp3d_commands.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,11 @@ bool ESP3DCommands::dispatch(ESP3DMessage *msg) {
14811481
tmp.replace("\n", " ");
14821482
tmp.replace("\r", "");
14831483
tmp += "\n";
1484+
//Override lock from Marlin if error was displayed previouly preventing any update
1485+
if (ESP3DSettings::GetFirmwareTarget() == MARLIN ||
1486+
ESP3DSettings::GetFirmwareTarget() == MARLIN_EMBEDDED) {
1487+
tmp = "M117\n" + tmp;
1488+
}
14841489
if (esp3d_message_manager.setDataContent(msg, (uint8_t *)tmp.c_str(),
14851490
tmp.length())) {
14861491
return dispatch(msg);

0 commit comments

Comments
 (0)