Implement wait_for_user for Color UI (#19694)
This commit is contained in:
committed by
Scott Lahteine
parent
67e0e6d5ad
commit
2dafba1ad2
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user