|
@@ -113,12 +113,20 @@ void host_action(PGM_P const pstr, const bool eol) {
|
113
|
113
|
void host_action_prompt_button(PGM_P const pstr) { host_action_prompt_plus(PSTR("button"), pstr); }
|
114
|
114
|
void host_action_prompt_end() { host_action_prompt(PSTR("end")); }
|
115
|
115
|
void host_action_prompt_show() { host_action_prompt(PSTR("show")); }
|
116
|
|
- void host_prompt_do(const PromptReason reason, PGM_P const pstr, PGM_P const btn1/*=nullptr*/, PGM_P const btn2/*=nullptr*/) {
|
117
|
|
- host_action_prompt_begin(reason, pstr);
|
|
116
|
+
|
|
117
|
+ void _host_prompt_show(PGM_P const btn1/*=nullptr*/, PGM_P const btn2/*=nullptr*/) {
|
118
|
118
|
if (btn1) host_action_prompt_button(btn1);
|
119
|
119
|
if (btn2) host_action_prompt_button(btn2);
|
120
|
120
|
host_action_prompt_show();
|
121
|
121
|
}
|
|
122
|
+ void host_prompt_do(const PromptReason reason, PGM_P const pstr, PGM_P const btn1/*=nullptr*/, PGM_P const btn2/*=nullptr*/) {
|
|
123
|
+ host_action_prompt_begin(reason, pstr);
|
|
124
|
+ _host_prompt_show(btn1, btn2);
|
|
125
|
+ }
|
|
126
|
+ void host_prompt_do(const PromptReason reason, PGM_P const pstr, const char extra_char, PGM_P const btn1/*=nullptr*/, PGM_P const btn2/*=nullptr*/) {
|
|
127
|
+ host_action_prompt_begin(reason, pstr, extra_char);
|
|
128
|
+ _host_prompt_show(btn1, btn2);
|
|
129
|
+ }
|
122
|
130
|
|
123
|
131
|
void filament_load_host_prompt() {
|
124
|
132
|
const bool disable_to_continue = TERN0(HAS_FILAMENT_SENSOR, runout.filament_ran_out);
|