|
@ -310,24 +310,35 @@ inline void do_probe_raise(const float z_raise) { |
|
|
|
|
|
|
|
|
FORCE_INLINE void probe_specific_action(const bool deploy) { |
|
|
FORCE_INLINE void probe_specific_action(const bool deploy) { |
|
|
#if ENABLED(PAUSE_BEFORE_DEPLOY_STOW) |
|
|
#if ENABLED(PAUSE_BEFORE_DEPLOY_STOW) |
|
|
|
|
|
do { |
|
|
|
|
|
#if ENABLED(PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED) |
|
|
|
|
|
if (READ(Z_MIN_PROBE_PIN) == (deploy == bool(Z_MIN_PROBE_ENDSTOP_INVERTING))) break; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
BUZZ(100, 659); |
|
|
BUZZ(100, 659); |
|
|
BUZZ(100, 698); |
|
|
BUZZ(100, 698); |
|
|
|
|
|
|
|
|
PGM_P const ds_str = deploy ? PSTR(MSG_MANUAL_DEPLOY) : PSTR(MSG_MANUAL_STOW); |
|
|
PGM_P const ds_str = deploy ? PSTR(MSG_MANUAL_DEPLOY) : PSTR(MSG_MANUAL_STOW); |
|
|
ui.return_to_status(); // To display the new status message
|
|
|
ui.return_to_status(); // To display the new status message
|
|
|
ui.set_status_P(ds_str, 99); |
|
|
ui.set_status_P(ds_str, 99); |
|
|
serialprintPGM(ds_str); |
|
|
serialprintPGM(ds_str); |
|
|
SERIAL_EOL(); |
|
|
SERIAL_EOL(); |
|
|
|
|
|
|
|
|
KEEPALIVE_STATE(PAUSED_FOR_USER); |
|
|
KEEPALIVE_STATE(PAUSED_FOR_USER); |
|
|
wait_for_user = true; |
|
|
wait_for_user = true; |
|
|
#if ENABLED(HOST_PROMPT_SUPPORT) |
|
|
#if ENABLED(HOST_PROMPT_SUPPORT) |
|
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Stow Probe"), PSTR("Continue")); |
|
|
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Stow Probe"), PSTR("Continue")); |
|
|
#endif |
|
|
#endif |
|
|
while (wait_for_user) idle(); |
|
|
while (wait_for_user) idle(); |
|
|
ui.reset_status(); |
|
|
ui.reset_status(); |
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
|
|
} while( |
|
|
|
|
|
#if ENABLED(PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED) |
|
|
|
|
|
true |
|
|
|
|
|
#else |
|
|
|
|
|
false |
|
|
|
|
|
#endif |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
#endif // PAUSE_BEFORE_DEPLOY_STOW
|
|
|
#endif // PAUSE_BEFORE_DEPLOY_STOW
|
|
|
|
|
|
|
|
|