Skip to content

Commit 008bf1b

Browse files
committed
🎨 Apply F() to Host Actions strings
1 parent 7f1286a commit 008bf1b

File tree

13 files changed

+74
-74
lines changed

13 files changed

+74
-74
lines changed

Marlin/src/feature/host_actions.cpp

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,33 @@
3737
#include "runout.h"
3838
#endif
3939

40-
void host_action(PGM_P const pstr, const bool eol) {
40+
void host_action(FSTR_P const fstr, const bool eol) {
4141
PORT_REDIRECT(SerialMask::All);
4242
SERIAL_ECHOPGM("//action:");
43-
SERIAL_ECHOPGM_P(pstr);
43+
SERIAL_ECHOF(fstr);
4444
if (eol) SERIAL_EOL();
4545
}
4646

4747
#ifdef ACTION_ON_KILL
48-
void host_action_kill() { host_action(PSTR(ACTION_ON_KILL)); }
48+
void host_action_kill() { host_action(F(ACTION_ON_KILL)); }
4949
#endif
5050
#ifdef ACTION_ON_PAUSE
51-
void host_action_pause(const bool eol/*=true*/) { host_action(PSTR(ACTION_ON_PAUSE), eol); }
51+
void host_action_pause(const bool eol/*=true*/) { host_action(F(ACTION_ON_PAUSE), eol); }
5252
#endif
5353
#ifdef ACTION_ON_PAUSED
54-
void host_action_paused(const bool eol/*=true*/) { host_action(PSTR(ACTION_ON_PAUSED), eol); }
54+
void host_action_paused(const bool eol/*=true*/) { host_action(F(ACTION_ON_PAUSED), eol); }
5555
#endif
5656
#ifdef ACTION_ON_RESUME
57-
void host_action_resume() { host_action(PSTR(ACTION_ON_RESUME)); }
57+
void host_action_resume() { host_action(F(ACTION_ON_RESUME)); }
5858
#endif
5959
#ifdef ACTION_ON_RESUMED
60-
void host_action_resumed() { host_action(PSTR(ACTION_ON_RESUMED)); }
60+
void host_action_resumed() { host_action(F(ACTION_ON_RESUMED)); }
6161
#endif
6262
#ifdef ACTION_ON_CANCEL
63-
void host_action_cancel() { host_action(PSTR(ACTION_ON_CANCEL)); }
63+
void host_action_cancel() { host_action(F(ACTION_ON_CANCEL)); }
6464
#endif
6565
#ifdef ACTION_ON_START
66-
void host_action_start() { host_action(PSTR(ACTION_ON_START)); }
66+
void host_action_start() { host_action(F(ACTION_ON_START)); }
6767
#endif
6868

6969
#if ENABLED(HOST_PROMPT_SUPPORT)
@@ -77,60 +77,60 @@ void host_action(PGM_P const pstr, const bool eol) {
7777

7878
PromptReason host_prompt_reason = PROMPT_NOT_DEFINED;
7979

80-
void host_action_notify(const char * const message) {
80+
void host_action_notify(const char * const cstr) {
8181
PORT_REDIRECT(SerialMask::All);
82-
host_action(PSTR("notification "), false);
83-
SERIAL_ECHOLN(message);
82+
host_action(F("notification "), false);
83+
SERIAL_ECHOLN(cstr);
8484
}
8585

86-
void host_action_notify_P(PGM_P const message) {
86+
void host_action_notify(FSTR_P const fstr) {
8787
PORT_REDIRECT(SerialMask::All);
88-
host_action(PSTR("notification "), false);
89-
SERIAL_ECHOLNPGM_P(message);
88+
host_action(F("notification "), false);
89+
SERIAL_ECHOLNF(fstr);
9090
}
9191

92-
void host_action_prompt(PGM_P const ptype, const bool eol=true) {
92+
void host_action_prompt(FSTR_P const ptype, const bool eol=true) {
9393
PORT_REDIRECT(SerialMask::All);
94-
host_action(PSTR("prompt_"), false);
95-
SERIAL_ECHOPGM_P(ptype);
94+
host_action(F("prompt_"), false);
95+
SERIAL_ECHOF(ptype);
9696
if (eol) SERIAL_EOL();
9797
}
9898

99-
void host_action_prompt_plus(PGM_P const ptype, PGM_P const pstr, const char extra_char='\0') {
99+
void host_action_prompt_plus(FSTR_P const ptype, FSTR_P const fstr, const char extra_char='\0') {
100100
host_action_prompt(ptype, false);
101101
PORT_REDIRECT(SerialMask::All);
102102
SERIAL_CHAR(' ');
103-
SERIAL_ECHOPGM_P(pstr);
103+
SERIAL_ECHOF(fstr);
104104
if (extra_char != '\0') SERIAL_CHAR(extra_char);
105105
SERIAL_EOL();
106106
}
107-
void host_action_prompt_begin(const PromptReason reason, PGM_P const pstr, const char extra_char/*='\0'*/) {
107+
void host_action_prompt_begin(const PromptReason reason, FSTR_P const fstr, const char extra_char/*='\0'*/) {
108108
host_action_prompt_end();
109109
host_prompt_reason = reason;
110-
host_action_prompt_plus(PSTR("begin"), pstr, extra_char);
110+
host_action_prompt_plus(F("begin"), fstr, extra_char);
111111
}
112-
void host_action_prompt_button(PGM_P const pstr) { host_action_prompt_plus(PSTR("button"), pstr); }
113-
void host_action_prompt_end() { host_action_prompt(PSTR("end")); }
114-
void host_action_prompt_show() { host_action_prompt(PSTR("show")); }
112+
void host_action_prompt_button(FSTR_P const fstr) { host_action_prompt_plus(F("button"), fstr); }
113+
void host_action_prompt_end() { host_action_prompt(F("end")); }
114+
void host_action_prompt_show() { host_action_prompt(F("show")); }
115115

116-
void _host_prompt_show(PGM_P const btn1/*=nullptr*/, PGM_P const btn2/*=nullptr*/) {
116+
void _host_prompt_show(FSTR_P const btn1/*=nullptr*/, FSTR_P const btn2/*=nullptr*/) {
117117
if (btn1) host_action_prompt_button(btn1);
118118
if (btn2) host_action_prompt_button(btn2);
119119
host_action_prompt_show();
120120
}
121-
void host_prompt_do(const PromptReason reason, PGM_P const pstr, PGM_P const btn1/*=nullptr*/, PGM_P const btn2/*=nullptr*/) {
122-
host_action_prompt_begin(reason, pstr);
121+
void host_prompt_do(const PromptReason reason, FSTR_P const fstr, FSTR_P const btn1/*=nullptr*/, FSTR_P const btn2/*=nullptr*/) {
122+
host_action_prompt_begin(reason, fstr);
123123
_host_prompt_show(btn1, btn2);
124124
}
125-
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*/) {
126-
host_action_prompt_begin(reason, pstr, extra_char);
125+
void host_prompt_do(const PromptReason reason, FSTR_P const fstr, const char extra_char, FSTR_P const btn1/*=nullptr*/, FSTR_P const btn2/*=nullptr*/) {
126+
host_action_prompt_begin(reason, fstr, extra_char);
127127
_host_prompt_show(btn1, btn2);
128128
}
129129

130130
void filament_load_host_prompt() {
131131
const bool disable_to_continue = TERN0(HAS_FILAMENT_SENSOR, runout.filament_ran_out);
132-
host_prompt_do(PROMPT_FILAMENT_RUNOUT, PSTR("Paused"), PSTR("PurgeMore"),
133-
disable_to_continue ? PSTR("DisableRunout") : CONTINUE_STR
132+
host_prompt_do(PROMPT_FILAMENT_RUNOUT, F("Paused"), F("PurgeMore"),
133+
disable_to_continue ? F("DisableRunout") : FPSTR(CONTINUE_STR)
134134
);
135135
}
136136

Marlin/src/feature/host_actions.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "../inc/MarlinConfigPre.h"
2525
#include "../HAL/shared/Marduino.h"
2626

27-
void host_action(PGM_P const pstr, const bool eol=true);
27+
void host_action(FSTR_P const fstr, const bool eol=true);
2828

2929
#ifdef ACTION_ON_KILL
3030
void host_action_kill();
@@ -64,16 +64,16 @@ void host_action(PGM_P const pstr, const bool eol=true);
6464
extern PromptReason host_prompt_reason;
6565

6666
void host_response_handler(const uint8_t response);
67-
void host_action_notify(const char * const message);
68-
void host_action_notify_P(PGM_P const message);
69-
void host_action_prompt_begin(const PromptReason reason, PGM_P const pstr, const char extra_char='\0');
70-
void host_action_prompt_button(PGM_P const pstr);
67+
void host_action_notify(const char * const cstr);
68+
void host_action_notify(FSTR_P const fstr);
69+
void host_action_prompt_begin(const PromptReason reason, FSTR_P const fstr, const char extra_char='\0');
70+
void host_action_prompt_button(FSTR_P const fstr);
7171
void host_action_prompt_end();
7272
void host_action_prompt_show();
73-
void host_prompt_do(const PromptReason reason, PGM_P const pstr, PGM_P const btn1=nullptr, PGM_P const btn2=nullptr);
74-
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);
75-
inline void host_prompt_open(const PromptReason reason, PGM_P const pstr, PGM_P const btn1=nullptr, PGM_P const btn2=nullptr) {
76-
if (host_prompt_reason == PROMPT_NOT_DEFINED) host_prompt_do(reason, pstr, btn1, btn2);
73+
void host_prompt_do(const PromptReason reason, FSTR_P const fstr, FSTR_P const btn1=nullptr, FSTR_P const btn2=nullptr);
74+
void host_prompt_do(const PromptReason reason, FSTR_P const fstr, const char extra_char, FSTR_P const btn1=nullptr, FSTR_P const btn2=nullptr);
75+
inline void host_prompt_open(const PromptReason reason, FSTR_P const fstr, FSTR_P const btn1=nullptr, FSTR_P const btn2=nullptr) {
76+
if (host_prompt_reason == PROMPT_NOT_DEFINED) host_prompt_do(reason, fstr, btn1, btn2);
7777
}
7878

7979
void filament_load_host_prompt();

Marlin/src/feature/mmu/mmu2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ bool MMU2::eject_filament(const uint8_t index, const bool recover) {
960960
if (recover) {
961961
LCD_MESSAGE(MSG_MMU2_EJECT_RECOVER);
962962
BUZZ(200, 404);
963-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, PSTR("MMU2 Eject Recover"), CONTINUE_STR));
963+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, F("MMU2 Eject Recover"), FPSTR(CONTINUE_STR)));
964964
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(PSTR("MMU2 Eject Recover")));
965965
TERN_(HAS_RESUME_CONTINUE, wait_for_user_response());
966966
BUZZ(200, 404);

Marlin/src/feature/pause.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ bool load_filament(const_float_t slow_load_length/*=0*/, const_float_t fast_load
198198

199199
#if ENABLED(HOST_PROMPT_SUPPORT)
200200
const char tool = '0' + TERN0(MULTI_FILAMENT_SENSOR, active_extruder);
201-
host_prompt_do(PROMPT_USER_CONTINUE, PSTR("Load Filament T"), tool, CONTINUE_STR);
201+
host_prompt_do(PROMPT_USER_CONTINUE, F("Load Filament T"), tool, FPSTR(CONTINUE_STR));
202202
#endif
203203

204204
while (wait_for_user) {
@@ -253,7 +253,7 @@ bool load_filament(const_float_t slow_load_length/*=0*/, const_float_t fast_load
253253
if (show_lcd) ui.pause_show_message(PAUSE_MESSAGE_PURGE);
254254

255255
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_FILAMENT_CHANGE_PURGE)));
256-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT(MSG_FILAMENT_CHANGE_PURGE), CONTINUE_STR));
256+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_FILAMENT_CHANGE_PURGE), FPSTR(CONTINUE_STR)));
257257
TERN_(DWIN_CREALITY_LCD_ENHANCED, DWIN_Popup_Confirm(ICON_BLTouch, GET_TEXT(MSG_FILAMENT_CHANGE_PURGE), CONTINUE_STR));
258258
wait_for_user = true; // A click or M108 breaks the purge_length loop
259259
for (float purge_count = purge_length; purge_count > 0 && wait_for_user; --purge_count)
@@ -403,7 +403,7 @@ bool pause_print(const_float_t retract, const xyz_pos_t &park_point, const bool
403403
#endif
404404
#endif
405405

406-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_INFO, PSTR("Pause"), DISMISS_STR));
406+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_INFO, F("Pause"), FPSTR(DISMISS_STR)));
407407

408408
// Indicate that the printer is paused
409409
++did_pause_print;
@@ -512,7 +512,7 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
512512

513513
// Wait for filament insert by user and press button
514514
KEEPALIVE_STATE(PAUSED_FOR_USER);
515-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT(MSG_NOZZLE_PARKED), CONTINUE_STR));
515+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_NOZZLE_PARKED), FPSTR(CONTINUE_STR)));
516516
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_NOZZLE_PARKED)));
517517
wait_for_user = true; // LCD click or M108 will clear this
518518
while (wait_for_user) {
@@ -528,13 +528,13 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
528528
ui.pause_show_message(PAUSE_MESSAGE_HEAT);
529529
SERIAL_ECHO_MSG(_PMSG(STR_FILAMENT_CHANGE_HEAT));
530530

531-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT(MSG_HEATER_TIMEOUT), GET_TEXT(MSG_REHEAT)));
531+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_HEATER_TIMEOUT), GET_TEXT_F(MSG_REHEAT)));
532532

533533
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_HEATER_TIMEOUT)));
534534

535535
TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(0, true)); // Wait for LCD click or M108
536536

537-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_INFO, GET_TEXT(MSG_REHEATING)));
537+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_INFO, GET_TEXT_F(MSG_REHEATING)));
538538

539539
TERN_(EXTENSIBLE_UI, ExtUI::onStatusChanged_P(GET_TEXT(MSG_REHEATING)));
540540

@@ -554,7 +554,7 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
554554

555555
HOTEND_LOOP() thermalManager.heater_idle[e].start(nozzle_timeout);
556556

557-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT(MSG_REHEATDONE), CONTINUE_STR));
557+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_REHEATDONE), FPSTR(CONTINUE_STR)));
558558
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_REHEATDONE)));
559559
TERN_(DWIN_CREALITY_LCD_ENHANCED, LCD_MESSAGE(MSG_REHEATDONE));
560560

@@ -671,7 +671,7 @@ void resume_print(const_float_t slow_load_length/*=0*/, const_float_t fast_load_
671671

672672
--did_pause_print;
673673

674-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_INFO, PSTR("Resuming"), DISMISS_STR));
674+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_INFO, F("Resuming"), FPSTR(DISMISS_STR)));
675675

676676
// Resume the print job timer if it was running
677677
if (print_job_timer.isPaused()) print_job_timer.start();

Marlin/src/feature/runout.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void event_filament_runout(const uint8_t extruder) {
9696

9797
//action:out_of_filament
9898
#if ENABLED(HOST_PROMPT_SUPPORT)
99-
host_action_prompt_begin(PROMPT_FILAMENT_RUNOUT, PSTR("FilamentRunout T"), tool);
99+
host_action_prompt_begin(PROMPT_FILAMENT_RUNOUT, F("FilamentRunout T"), tool);
100100
host_action_prompt_show();
101101
#endif
102102

@@ -115,7 +115,7 @@ void event_filament_runout(const uint8_t extruder) {
115115
// Legacy Repetier command for use until newer version supports standard dialog
116116
// To be removed later when pause command also triggers dialog
117117
#ifdef ACTION_ON_FILAMENT_RUNOUT
118-
host_action(PSTR(ACTION_ON_FILAMENT_RUNOUT " T"), false);
118+
host_action(F(ACTION_ON_FILAMENT_RUNOUT " T"), false);
119119
SERIAL_CHAR(tool);
120120
SERIAL_EOL();
121121
#endif

Marlin/src/gcode/config/M43.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void GcodeSuite::M43() {
344344
#if HAS_RESUME_CONTINUE
345345
KEEPALIVE_STATE(PAUSED_FOR_USER);
346346
wait_for_user = true;
347-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, PSTR("M43 Wait Called"), CONTINUE_STR));
347+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, F("M43 Wait Called"), FPSTR(CONTINUE_STR)));
348348
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(PSTR("M43 Wait Called")));
349349
#endif
350350

Marlin/src/gcode/gcode.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ void GcodeSuite::dwell(millis_t time) {
237237
#if ENABLED(G29_RETRY_AND_RECOVER)
238238

239239
void GcodeSuite::event_probe_recover() {
240-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_INFO, PSTR("G29 Retrying"), DISMISS_STR));
240+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_INFO, F("G29 Retrying"), FPSTR(DISMISS_STR)));
241241
#ifdef ACTION_ON_G29_RECOVER
242-
host_action(PSTR(ACTION_ON_G29_RECOVER));
242+
host_action(F(ACTION_ON_G29_RECOVER));
243243
#endif
244244
#ifdef G29_RECOVER_COMMANDS
245245
process_subcommands_now(F(G29_RECOVER_COMMANDS));
@@ -252,7 +252,7 @@ void GcodeSuite::dwell(millis_t time) {
252252

253253
void GcodeSuite::event_probe_failure() {
254254
#ifdef ACTION_ON_G29_FAILURE
255-
host_action(PSTR(ACTION_ON_G29_FAILURE));
255+
host_action(F(ACTION_ON_G29_FAILURE));
256256
#endif
257257
#ifdef G29_FAILURE_COMMANDS
258258
process_subcommands_now(F(G29_FAILURE_COMMANDS));

Marlin/src/gcode/lcd/M0_M1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void GcodeSuite::M0_M1() {
8484

8585
#endif
8686

87-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, parser.codenum ? PSTR("M1 Stop") : PSTR("M0 Stop"), CONTINUE_STR));
87+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, parser.codenum ? F("M1 Stop") : F("M0 Stop"), FPSTR(CONTINUE_STR)));
8888

8989
TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(ms));
9090

Marlin/src/gcode/sd/M1001.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void GcodeSuite::M1001() {
9696
if (long_print) {
9797
printerEventLEDs.onPrintCompleted();
9898
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_PRINT_DONE)));
99-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT(MSG_PRINT_DONE), CONTINUE_STR));
99+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_PRINT_DONE), FPSTR(CONTINUE_STR)));
100100
TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(SEC_TO_MS(TERN(HAS_LCD_MENU, PE_LEDS_COMPLETED_TIME, 30))));
101101
printerEventLEDs.onResumeAfterWait();
102102
}

Marlin/src/gcode/sd/M24_M25.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void GcodeSuite::M24() {
7979
#ifdef ACTION_ON_RESUME
8080
host_action_resume();
8181
#endif
82-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_INFO, PSTR("Resuming SD"), DISMISS_STR));
82+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_INFO, F("Resuming SD"), FPSTR(DISMISS_STR)));
8383
#endif
8484

8585
ui.reset_status();
@@ -116,7 +116,7 @@ void GcodeSuite::M25() {
116116
IF_DISABLED(DWIN_CREALITY_LCD, ui.reset_status());
117117

118118
#if ENABLED(HOST_ACTION_COMMANDS)
119-
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("Pause SD"), PSTR("Resume")));
119+
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_PAUSE_RESUME, F("Pause SD"), F("Resume")));
120120
#ifdef ACTION_ON_PAUSE
121121
host_action_pause();
122122
#endif

0 commit comments

Comments
 (0)