Fix compile error

This commit is contained in:
Theo Arends 2021-10-21 18:35:25 +02:00
parent cf380f8a90
commit b65e0fb21e

View File

@ -560,12 +560,8 @@ const char UFS_FORM_SDC_DIRa[] PROGMEM =
const char UFS_FORM_SDC_DIRc[] PROGMEM = const char UFS_FORM_SDC_DIRc[] PROGMEM =
"</div>"; "</div>";
const char UFS_FORM_FILE_UPGb[] PROGMEM = const char UFS_FORM_FILE_UPGb[] PROGMEM =
#ifdef GUI_EDIT_FILE
"<form method='get' action='ufse'><input type='hidden' file='" D_NEW_FILE "'>" "<form method='get' action='ufse'><input type='hidden' file='" D_NEW_FILE "'>"
"<button type='submit'>" D_CREATE_NEW_FILE "</button></form>" "<button type='submit'>" D_CREATE_NEW_FILE "</button></form>";
#endif
;
const char UFS_FORM_FILE_UPGb1[] PROGMEM = const char UFS_FORM_FILE_UPGb1[] PROGMEM =
"<input type='checkbox' id='shf' onclick='sf(eb(\"shf\").checked);' name='shf'>" D_SHOW_HIDDEN_FILES "</input>"; "<input type='checkbox' id='shf' onclick='sf(eb(\"shf\").checked);' name='shf'>" D_SHOW_HIDDEN_FILES "</input>";
@ -670,7 +666,9 @@ void UfsDirectory(void) {
UfsListDir(ufs_path, depth); UfsListDir(ufs_path, depth);
} }
WSContentSend_P(UFS_FORM_SDC_DIRc); WSContentSend_P(UFS_FORM_SDC_DIRc);
#ifdef GUI_EDIT_FILE
WSContentSend_P(UFS_FORM_FILE_UPGb); WSContentSend_P(UFS_FORM_FILE_UPGb);
#endif
if (!isSDC()) { if (!isSDC()) {
WSContentSend_P(UFS_FORM_FILE_UPGb1); WSContentSend_P(UFS_FORM_FILE_UPGb1);
} }