Update ui_api.cpp

This commit is contained in:
InsanityAutomation
2021-04-28 10:36:40 -04:00
parent 160f8ef0bc
commit 680135583a
+1 -5
View File
@@ -1065,11 +1065,7 @@ namespace ExtUI {
}
void onStatusChanged_P(PGM_P const pstr) {
char msg[strlen_P(pstr) + 1];
strcpy_P(msg, pstr);
if(strlen(msg) > 20)
msg[20]="\0";
onStatusChanged(msg);
onStatusChanged(pstr);
}
FileList::FileList() { refresh(); }