Implement wait_for_user for Color UI (#19694)

This commit is contained in:
Victor Oliveira
2020-10-11 21:26:16 -03:00
committed by Scott Lahteine
parent 67e0e6d5ad
commit 2dafba1ad2
2 changed files with 20 additions and 1 deletions

View File

@ -46,6 +46,10 @@
#include "../../lcd/extui/ui_api.h"
#endif
#if HAS_RESUME_CONTINUE
#include "../../lcd/ultralcd.h"
#endif
#ifndef GET_PIN_MAP_PIN_M43
#define GET_PIN_MAP_PIN_M43(Q) GET_PIN_MAP_PIN(Q)
#endif
@ -362,7 +366,10 @@ void GcodeSuite::M43() {
}
}
if (TERN0(HAS_RESUME_CONTINUE, !wait_for_user)) break;
#if HAS_RESUME_CONTINUE
ui.update();
if (!wait_for_user) break;
#endif
safe_delay(200);
}