mirror of
https://github.com/luc-github/ESP3D.git
synced 2025-10-24 11:50:52 -07:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user