Move common strings (#20846)
This commit is contained in:
@@ -101,8 +101,6 @@ void menu_configuration();
|
||||
void menu_language();
|
||||
#endif
|
||||
|
||||
extern const char M21_STR[];
|
||||
|
||||
void menu_main() {
|
||||
const bool busy = printingIsActive()
|
||||
#if ENABLED(SDSUPPORT)
|
||||
@@ -156,7 +154,7 @@ void menu_main() {
|
||||
if (!card_open) {
|
||||
SUBMENU(MSG_MEDIA_MENU, MEDIA_MENU_GATEWAY);
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
GCODES_ITEM(MSG_CHANGE_MEDIA, M21_STR);
|
||||
GCODES_ITEM(MSG_CHANGE_MEDIA, PSTR("M21"));
|
||||
#else
|
||||
GCODES_ITEM(MSG_RELEASE_MEDIA, PSTR("M22"));
|
||||
#endif
|
||||
@@ -166,7 +164,7 @@ void menu_main() {
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
ACTION_ITEM(MSG_NO_MEDIA, nullptr);
|
||||
#else
|
||||
GCODES_ITEM(MSG_ATTACH_MEDIA, M21_STR);
|
||||
GCODES_ITEM(MSG_ATTACH_MEDIA, PSTR("M21"));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -257,7 +255,7 @@ void menu_main() {
|
||||
if (card_detected) {
|
||||
if (!card_open) {
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
GCODES_ITEM(MSG_CHANGE_MEDIA, M21_STR);
|
||||
GCODES_ITEM(MSG_CHANGE_MEDIA, PSTR("M21"));
|
||||
#else
|
||||
GCODES_ITEM(MSG_RELEASE_MEDIA, PSTR("M22"));
|
||||
#endif
|
||||
@@ -268,7 +266,7 @@ void menu_main() {
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
ACTION_ITEM(MSG_NO_MEDIA, nullptr);
|
||||
#else
|
||||
GCODES_ITEM(MSG_ATTACH_MEDIA, M21_STR);
|
||||
GCODES_ITEM(MSG_ATTACH_MEDIA, PSTR("M21"));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user