From 58b1c140d793f4998aca168882619673853814e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ga=C5=88o?= Date: Wed, 20 Jul 2022 13:06:57 +0200 Subject: [PATCH] fatfsgen.py: add description of the parameter PRESERVE_TIME --- docs/en/api-reference/storage/fatfs.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/en/api-reference/storage/fatfs.rst b/docs/en/api-reference/storage/fatfs.rst index 861e03b059..ea8d46821c 100644 --- a/docs/en/api-reference/storage/fatfs.rst +++ b/docs/en/api-reference/storage/fatfs.rst @@ -123,6 +123,9 @@ The arguments of the function are as follows: 3. flag ``FLASH_IN_PROJECT`` - optionally, users can have the image automatically flashed together with the app binaries, partition tables, etc. on ``idf.py flash -p `` by specifying ``FLASH_IN_PROJECT``. +4. flag ``PRESERVE_TIME`` - optionally, users can force preserving the timestamps from the source folder to the target image. Without preserving the time, every timestamp will be set to the FATFS default initial time (1st January 1980). + + For example:: fatfs_create_spiflash_image(my_fatfs_partition my_folder FLASH_IN_PROJECT)