khoih-prog / Timezone_Generic

Library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments. For ESP8266, ESP32, WT32-ETH01 (ESP32 + LAN8720), SAMD21, SAMD51, nRF52, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RTL8720DN, RP2040-based (Nano_RP2040_Connect, RASPBERRY_PI_PICO), Portenta_H7 (Ethernet or WiFi) boards, etc. using W5x00/ENC28J60/LAN8742A Ethernet, ESP or ESP-AT WiFi or WiFiNINA. Ethernet_Generic library is used as default for W5x00.
GNU General Public License v3.0
13 stars 7 forks source link

LittleFS data missing #7

Closed m4ks84 closed 2 years ago

m4ks84 commented 2 years ago

Hi,

Thank you for your work. I have an issue with the releases > V1.7.2 I use LittleFS and with these releases the files in the filesystem are missing. There is no compilation error. Is there something to add since the V1.7.3 in relation with filesystem (i didn't find the solution in examples) ?

My project is big so this is an extract of the Timezone code :

// ----------- Timezone parameters ------------
// TimeChangeRules Objet :
TimeChangeRule CEST = {"CEST", Last, Sun, Mar, 2, 120};  // Daylight time = UTC + 2 hours
TimeChangeRule CET = {"CET", Last, Sun, Oct, 3, 60};     // Standard time = UTC + 1 hours
TimeChangeRule *tcr;                                     // Pointer to the time change rule
// Timezone Objet :
Timezone CentralEuroTZ(CEST,CET);`

The others instructions in my code are tests (check if current time is DST) so i think it's useless to detail them.

Thanks for your help.

Information

khoih-prog commented 2 years ago

Hi @m4ks84

There is nothing changed relating to ESP8266 and/or LittleFS by this library.

The possible reason is the new and recent ESSP8266 cores have many breaking changes relating to SPIFFS/LittleFS.

Read carefully ESP8266 Releases, and try old cores (such as v2.7.4) and see if OK.

I'm closing the issue now as this is not a bug or issue of this library.

Good Luck,