From acb50dad7bde20307de8d9f0e3710aa629defc2f Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 25 Dec 2025 12:58:32 +0200 Subject: [PATCH] fatfs: set default date to 1/1/2026 --- bootloader/libs/fatfs/ffconf.h | 6 ++++-- nyx/nyx_gui/libs/fatfs/ffconf.h | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bootloader/libs/fatfs/ffconf.h b/bootloader/libs/fatfs/ffconf.h index c6b94bc4..03c748a9 100644 --- a/bootloader/libs/fatfs/ffconf.h +++ b/bootloader/libs/fatfs/ffconf.h @@ -41,6 +41,7 @@ #define FF_USE_MKFS 0 /* This option switches f_mkfs() function. (0:Disable or 1:Enable) */ + #if FF_USE_MKFS #define FF_MKFS_LABEL "SWITCH SD " #endif @@ -50,6 +51,7 @@ #define FF_USE_FASTSEEK 0 /* This option switches fast seek function. (0:Disable or 1:Enable) */ + #define FF_FASTFS 0 #if FF_FASTFS #undef FF_USE_FASTSEEK @@ -194,7 +196,7 @@ / not defined, a user defined volume string table needs to be defined as: / / const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",... -/ Order is important. Any change to order, must also be reflected to diskio drive enum. +/ Order is important! Any change to order, must also be reflected to diskio drive enum. */ @@ -256,7 +258,7 @@ #define FF_FS_NORTC 1 #define FF_NORTC_MON 1 #define FF_NORTC_MDAY 1 -#define FF_NORTC_YEAR 2025 +#define FF_NORTC_YEAR 2026 /* The option FF_FS_NORTC switches timestamp function. If the system does not have / any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable / the timestamp function. Every object modified by FatFs will have a fixed timestamp diff --git a/nyx/nyx_gui/libs/fatfs/ffconf.h b/nyx/nyx_gui/libs/fatfs/ffconf.h index d0c6f701..a8170df0 100644 --- a/nyx/nyx_gui/libs/fatfs/ffconf.h +++ b/nyx/nyx_gui/libs/fatfs/ffconf.h @@ -41,6 +41,7 @@ #define FF_USE_MKFS 1 /* This option switches f_mkfs() function. (0:Disable or 1:Enable) */ + #if FF_USE_MKFS #define FF_MKFS_LABEL "SWITCH SD " #endif @@ -50,6 +51,7 @@ #define FF_USE_FASTSEEK 0 /* This option switches fast seek function. (0:Disable or 1:Enable) */ + #define FF_FASTFS 1 #if FF_FASTFS #undef FF_USE_FASTSEEK @@ -184,7 +186,6 @@ #define FF_STR_VOLUME_ID 1 -// Order is important. Any change to order, must also be reflected to diskio drive enum. #define FF_VOLUME_STRS "sd","ram","emmc","bis","emu" /* FF_STR_VOLUME_ID switches support for volume ID in arbitrary strings. / When FF_STR_VOLUME_ID is set to 1 or 2, arbitrary strings can be used as drive @@ -195,7 +196,7 @@ / not defined, a user defined volume string table needs to be defined as: / / const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",... -/ Order is important. Any change to order, must also be reflected to diskio drive enum. +/ Order is important! Any change to order, must also be reflected to diskio drive enum. */ @@ -257,7 +258,7 @@ #define FF_FS_NORTC 0 #define FF_NORTC_MON 1 #define FF_NORTC_MDAY 1 -#define FF_NORTC_YEAR 2024 +#define FF_NORTC_YEAR 2026 /* The option FF_FS_NORTC switches timestamp function. If the system does not have / any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable / the timestamp function. Every object modified by FatFs will have a fixed timestamp