Skip to content

Commit bbcba6c

Browse files
committed
Set proper message at leveling editing screen top #256
1 parent 400f09b commit bbcba6c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Marlin/src/lcd/extui/dgus_creality/DGUSScreenHandler.h

+1
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ class DGUSScreenHandler {
387387

388388
static void SetSynchronousOperationStart();
389389
static void SetSynchronousOperationFinish();
390+
static bool HasCurrentSynchronousOperation() { return HasSynchronousOperation; }
390391
static void SendBusyState(DGUS_VP_Variable &var);
391392

392393
static void SetViewMeshLevelState();

Marlin/src/lcd/extui/dgus_creality/creality_touch/PageHandlers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void LevelingModeHandler(DGUS_VP_Variable &var, unsigned short buttonValue) {
141141
void LevelingHandler(DGUS_VP_Variable &var, unsigned short buttonValue) {
142142
switch (var.VP) {
143143
case VP_BUTTON_BEDLEVELKEY:
144-
if (!ScreenHandler.HasSynchronousOperation) {
144+
if (!ScreenHandler.HasCurrentSynchronousOperation()) {
145145
ScreenHandler.PopToOldScreen();
146146
} else {
147147
ScreenHandler.setstatusmessagePGM("Wait for leveling completion...");

Marlin/src/lcd/extui/dgus_creality_lcd.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ bool hasPrintTimer = false;
9696
ui.progress_reset();
9797
#endif
9898

99+
ScreenHandler.SetViewMeshLevelState();
99100
ScreenHandler.GotoScreen(DGUSLCD_SCREEN_PRINT_RUNNING);
100101
}
101102

0 commit comments

Comments
 (0)