mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-06-04 11:13:57 +08:00
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:
parent
1a0928ed3b
commit
0b8dc3af1e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user