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:
Lago
2026-04-03 15:41:26 +02:00
parent 6062083b5e
commit 44b6a89b57
3 changed files with 28 additions and 11 deletions
+5 -2
View File
@@ -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