From 25ca605b38759efb3cc8e1c1de0e00cec5c326d8 Mon Sep 17 00:00:00 2001 From: JoEmbedded <37515319+joembedded@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:22:49 +0100 Subject: [PATCH] Fix date validation bug and align README with repository layout --- README.md | 13 ++++++++----- jesfs_hl.c | 6 +++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3e2af6e..a61c775 100644 --- a/README.md +++ b/README.md @@ -239,10 +239,11 @@ Change device behavior without recompiling: JesFs is modular and portable: - **Low-level drivers:** `JesFs_ll_xxxxx.c` (platform-specific) - - `JesFs_ll_nrf52.c` for nRF52 + - `JesFs_ll_pca100xx.c` for nRF52 - `JesFs_ll_tirtos.c` for CC13xx/CC26xx - `JesFs_ll_pc.c` for Windows -- **Mid/High-level:** `jesfs_ml_hl.c` (hardware-independent) +- **Mid-level:** `jesfs_ml.c` (flash management, hardware-independent) +- **High-level:** `jesfs_hl.c` (file API, hardware-independent) - **Header:** `jesfs.h` (your main interface) - **Tools:** `tb_tools_xxx.c` (UART, Clock, LEDs, etc.) @@ -267,7 +268,9 @@ The nRF52840 DK comes with a massive **8 MB Serial Flash** – perfect for JesFs 4. Compile and run! 5. Connect via virtual COM-Port (115200 8N1) -**Project location:** `platform_nRF52/pca10056/ses/JesFsDemo_pca10056.emProject` +**Project location:** use the SES projects in: +- `platform_nRF52/nrf52832/ses/` +- `platform_nRF52/nrf52840/ses/` ### 2️⃣ TI CC1310/CC1350 Launchpad Demo @@ -350,7 +353,7 @@ Documentation for JesFsBoot: 📧 Just drop me a note! ## Version History ### Latest: V2.72 -- JesFs_hl.c (File V1.91) +- JesFs_hl.c (File V1.92) - All global fs_* functions check supply voltage on entry - Added feature: supply voltage check @@ -392,7 +395,7 @@ Documentation for JesFsBoot: 📧 Just drop me a note! ### Resources: - 🌐 **Homepage:** [joembedded.de](https://joembedded.de/) -- 📄 **Detailed API Docs:** [JesFs.md](JesFs.md) +- 📄 **Detailed API Docs:** [jesfs.h](jesfs.h) and inline source comments - 📊 **Performance Tests:** [Documentation/PerformanceTests.pdf](Documentation/PerformanceTests.pdf) - 🎯 **Use Case - BlackBox:** [usecase_BlackBox/readme.md](usecase_BlackBox/readme.md) - 🚀 **LTX project** [LTX project](https://github.com/joembedded/LTX_server) diff --git a/jesfs_hl.c b/jesfs_hl.c index 6e43760..8f7fa00 100644 --- a/jesfs_hl.c +++ b/jesfs_hl.c @@ -159,8 +159,8 @@ uint32_t fs_date2sec1970(FS_DATE *pd) { return 0; } } - if (pd->h > 23 || pd->m > 59 || pd->sec > 59) - return 0; + if (pd->h > 23 || pd->min > 59 || pd->sec > 59) + return 0; nsec = ((uint32_t)year_base / 4) * (1461 * SEC_DAY); // Complete 4-years nsec += ((uint32_t)year_idx) * (365 * SEC_DAY); // @@ -1050,4 +1050,4 @@ int16_t fs_check_disk(void cb_printf(char *fmt, ...), uint8_t *pline, uint32_t l //------------------- HighLevel FS OK ------------------------ -//----------------------------------------------- JESFS-End ---------------------- \ No newline at end of file +//----------------------------------------------- JESFS-End ----------------------