Add HOST_PROMPT_SUPPORT (#13039)

This commit is contained in:
InsanityAutomation authored and Scott Lahteine committed 2019-02-12 15:55:47 -06:00
1 parent 0feeef2604
commit 7f1b69b0c8
189 files changed
+2076 -3479

No files matched your search

+7
View File
@@ -38,6 +38,10 @@ MMU2 mmu2;
#include "../../module/stepper_indirection.h"
#include "../../Marlin.h"
#if ENABLED(HOST_PROMPT_SUPPORT)
#include "../../feature/host_actions.h"
#endif
#define MMU_TODELAY 100
#define MMU_TIMEOUT 10
#define MMU_CMD_TIMEOUT 60000ul //5min timeout for mmu commands (except P0)
@@ -791,6 +795,9 @@ void MMU2::filamentRunout() {
LCD_MESSAGEPGM(MSG_MMU2_EJECT_RECOVER);
BUZZ(200, 404);
wait_for_user = true;
#if ENABLED(HOST_PROMPT_SUPPORT)
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("MMU2 Eject Recover"), PSTR("Continue"));
#endif
while (wait_for_user) idle();
BUZZ(200, 404);
BUZZ(200, 404);