Update esp3d_commands.cpp
All checks were successful
build-ci / build (push) Successful in 1h23m41s

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
This commit is contained in:
Luc 2025-04-26 14:18:50 +08:00
parent 1a0928ed3b
commit 0b8dc3af1e

View File

@ -1481,6 +1481,11 @@ bool ESP3DCommands::dispatch(ESP3DMessage *msg) {
tmp.replace("\n", " ");
tmp.replace("\r", "");
tmp += "\n";
//Override lock from Marlin if error was displayed previouly preventing any update
if (ESP3DSettings::GetFirmwareTarget() == MARLIN ||
ESP3DSettings::GetFirmwareTarget() == MARLIN_EMBEDDED) {
tmp = "M117\n" + tmp;
}
if (esp3d_message_manager.setDataContent(msg, (uint8_t *)tmp.c_str(),
tmp.length())) {
return dispatch(msg);