fix: FTP storage backend, SD info display, time label alignment
- Fix FTP using FFAT instead of SD_MMC: define both NETWORK_TYPE (6) and STORAGE_TYPE (10) with numeric values to bypass FtpServerKey.h guard - Fix SD capacity showing 'f/f GB': use integer math instead of floats (LVGL builtin sprintf lacks %f support) - Fix time/date labels tilting 45°: set fixed width + LV_TEXT_ALIGN_CENTER - Switch LVGL sprintf to C stdlib for future float compatibility
This commit is contained in:
+5
-2
@@ -36,8 +36,11 @@ build_flags =
|
||||
-Wl,--wrap=esp_ota_mark_app_valid_cancel_rollback
|
||||
; Enable LVGL simple include
|
||||
-DLV_CONF_INCLUDE_SIMPLE
|
||||
; FTP server storage type: SD_MMC
|
||||
-DDEFAULT_STORAGE_TYPE_ESP32=STORAGE_SD_MMC
|
||||
; FTP server: must define BOTH network + storage with numeric values
|
||||
; to prevent FtpServerKey.h from defaulting to FFAT
|
||||
; NETWORK_ESP32=6, STORAGE_SD_MMC=10
|
||||
-DDEFAULT_FTP_SERVER_NETWORK_TYPE_ESP32=6
|
||||
-DDEFAULT_STORAGE_TYPE_ESP32=10
|
||||
; Suppress deprecation warnings
|
||||
-Wno-deprecated-declarations
|
||||
; Allow #warning without failing build
|
||||
|
||||
Reference in New Issue
Block a user