fix: FTP storage type (SD_MMC not FFAT), SD used-space walk
- Define FTP_SERVER_NETWORK_TYPE=6 and STORAGE_TYPE=10 directly to bypass FtpServerKey.h platform detection that was overriding storage to FFAT - Fix calcDirSize: properly close files, use name() for recursive path - Add SD debug logging for used-space calculation - This fixes file transfers (read/write) failing via FTP
This commit is contained in:
+4
-2
@@ -36,11 +36,13 @@ build_flags =
|
||||
-Wl,--wrap=esp_ota_mark_app_valid_cancel_rollback
|
||||
; Enable LVGL simple include
|
||||
-DLV_CONF_INCLUDE_SIMPLE
|
||||
; FTP server: must define BOTH network + storage with numeric values
|
||||
; to prevent FtpServerKey.h from defaulting to FFAT
|
||||
; FTP server: define STORAGE_TYPE and FTP_SERVER_NETWORK_TYPE directly
|
||||
; to bypass FtpServerKey.h platform detection entirely
|
||||
; NETWORK_ESP32=6, STORAGE_SD_MMC=10
|
||||
-DDEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32=6
|
||||
-DDEFAULT_STORAGE_TYPE_ESP32=10
|
||||
-DFTP_SERVER_NETWORK_TYPE=6
|
||||
-DSTORAGE_TYPE=10
|
||||
; Suppress deprecation warnings
|
||||
-Wno-deprecated-declarations
|
||||
; Allow #warning without failing build
|
||||
|
||||
Reference in New Issue
Block a user