summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r--firmware/drivers/fat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index e3e1a755cb..142d750bde 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -943,7 +943,7 @@ static void fat_time(unsigned short* date,
943 unsigned short* time, 943 unsigned short* time,
944 unsigned short* tenth ) 944 unsigned short* tenth )
945{ 945{
946#ifdef CONFIG_RTC 946#if CONFIG_RTC
947 struct tm* tm = get_time(); 947 struct tm* tm = get_time();
948 948
949 if (date) 949 if (date)
@@ -1506,7 +1506,7 @@ static int update_short_entry( struct fat_file* file, long size, int attr )
1506 *sizeptr = htole32(size); 1506 *sizeptr = htole32(size);
1507 1507
1508 { 1508 {
1509#ifdef CONFIG_RTC 1509#if CONFIG_RTC
1510 unsigned short time = 0; 1510 unsigned short time = 0;
1511 unsigned short date = 0; 1511 unsigned short date = 0;
1512#else 1512#else