🩹 Fix FSTR / PSTR usage
This commit is contained in:
committed by
Scott Lahteine
parent
c49f26a7ae
commit
4028c1cfc7
@@ -114,8 +114,8 @@ class MenuItem_confirm : public MenuItemBase {
|
||||
selectFunc_t yesFunc, selectFunc_t noFunc,
|
||||
PGM_P const pref, FSTR_P const string, PGM_P const suff=nullptr
|
||||
) {
|
||||
char str[strlen_P((PGM_P)string) + 1];
|
||||
strcpy_P(str, (PGM_P)string);
|
||||
char str[strlen_P(FTOP(string)) + 1];
|
||||
strcpy_P(str, FTOP(string));
|
||||
select_screen(yes, no, yesFunc, noFunc, pref, str, suff);
|
||||
}
|
||||
// Shortcut for prompt with "NO"/ "YES" labels
|
||||
|
Reference in New Issue
Block a user