diff --git a/README.md b/README.md index e845db9b..825c14f8 100644 --- a/README.md +++ b/README.md @@ -216,8 +216,8 @@ This [**Timezone_Generic library**](https://github.com/khoih-prog/Timezone_Gener 11. [`Adafruit nRF52 v1.1.0+`](https://github.com/adafruit/Adafruit_nRF52_Arduino) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest) 12. [`Arduino Core for STM32 v2.1.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32F/L/H/G/WB/MP1 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest) 13. [`Arduino mbed_rp2040 core 2.5.2+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) -14. [`Earle Philhower's arduino-pico core v1.9.5+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) -15. [`Arduino AmebaD core 3.0.10+`](https://github.com/ambiot/ambd_arduino) for Realtek RTL8720DN, RTL8722DM and RTL8722CSM. [![GitHub release](https://img.shields.io/github/release/ambiot/ambd_arduino.svg)](https://github.com/ambiot/ambd_arduino/releases/latest) +14. [`Earle Philhower's arduino-pico core v1.9.6+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) +15. [`Arduino AmebaD core 3.0.11+`](https://github.com/ambiot/ambd_arduino) for Realtek RTL8720DN, RTL8722DM and RTL8722CSM. [![GitHub release](https://img.shields.io/github/release/ambiot/ambd_arduino.svg)](https://github.com/ambiot/ambd_arduino/releases/latest) 16. [`Time v1.6.1+`](https://github.com/PaulStoffregen/Time). [![GitHub release](https://img.shields.io/github/release/PaulStoffregen/Time.svg)](https://github.com/PaulStoffregen/Time/releases/latest). For PIO [`Time library`](https://platformio.org/lib/show/44/Time) 17. Depending on which board you're using: @@ -236,13 +236,13 @@ This [**Timezone_Generic library**](https://github.com/khoih-prog/Timezone_Gener - [`UIPEthernet library v2.0.10+`](https://github.com/UIPEthernet/UIPEthernet) for ENC28J60. [![GitHub release](https://img.shields.io/github/release/UIPEthernet/UIPEthernet.svg)](https://github.com/UIPEthernet/UIPEthernet/releases/latest) - [`STM32Ethernet library v1.2.0+`](https://github.com/stm32duino/STM32Ethernet) for built-in LAN8742A Ethernet on (Nucleo-144, Discovery). [![GitHub release](https://img.shields.io/github/release/stm32duino/STM32Ethernet.svg)](https://github.com/stm32duino/STM32Ethernet/releases/latest). To be used with [`LwIP library v2.1.2+`](https://github.com/stm32duino/LwIP). [![GitHub release](https://img.shields.io/github/release/stm32duino/LwIP.svg)](https://github.com/stm32duino/LwIP/releases/latest). 19. [`WiFiNINA_Generic library v1.8.13+`](https://github.com/khoih-prog/WiFiNINA_Generic) to use WiFiNINA modules/shields. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiNINA_Generic.svg?)](https://www.ardu-badge.com/WiFiNINA_Generic) if using WiFiNINA for boards such as Nano 33 IoT, nRF52, Teensy, etc. -20. [`WiFiWebServer library v1.4.1+`](https://github.com/khoih-prog/WiFiWebServer) to use WiFi/WiFiNINA modules/shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer.svg?)](https://www.ardu-badge.com/WiFiWebServer) +20. [`WiFiWebServer library v1.4.2+`](https://github.com/khoih-prog/WiFiWebServer) to use WiFi/WiFiNINA modules/shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer.svg?)](https://www.ardu-badge.com/WiFiWebServer) 21. [`EthernetWebServer library v1.7.1+`](https://github.com/khoih-prog/EthernetWebServer) to use Ethernet modules/shields on boards other than STM32F/L/H/G/WB/MP1. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/EthernetWebServer.svg?)](https://www.ardu-badge.com/EthernetWebServer). 22. [`EthernetWebServer_STM32 library v1.2.1+`](https://github.com/khoih-prog/EthernetWebServer_STM32) to use Ethernet modules/shields on STM32F/L/H/G/WB/MP1 boards. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/EthernetWebServer_STM32.svg?)](https://www.ardu-badge.com/EthernetWebServer_STM32). 23. [`ESP8266_AT_WebServer library v1.4.0+`](https://github.com/khoih-prog/ESP8266_AT_WebServer) to use ESP8266-AT/ESP32-AT WiFi modules/shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP8266_AT_WebServer.svg?)](https://www.ardu-badge.com/ESP8266_AT_WebServer) 24. [`DS323x_Generic library v1.2.2+`](https://github.com/khoih-prog/DS323x_Generic) to use examples using DS323x RTC modules/shields. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/DS323x_Generic.svg?)](https://www.ardu-badge.com/DS323x_Generic) 25. [`STM32RTC library v1.1.1+`](https://github.com/stm32duino/STM32RTC) to use STM32 examples using built-in STM32 RTC. [![GitHub release](https://img.shields.io/github/release/stm32duino/STM32RTC.svg)](https://github.com/stm32duino/STM32RTC/releases/latest). -26. [`WebServer_WT32_ETH01 library v1.2.0+`](https://github.com/khoih-prog/WebServer_WT32_ETH01) to use WT32_ETH01 (ESP32 + LAN8720). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WebServer_WT32_ETH01.svg?)](https://www.ardu-badge.com/WebServer_WT32_ETH01). +26. [`WebServer_WT32_ETH01 library v1.3.0+`](https://github.com/khoih-prog/WebServer_WT32_ETH01) to use WT32_ETH01 (ESP32 + LAN8720). To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WebServer_WT32_ETH01.svg?)](https://www.ardu-badge.com/WebServer_WT32_ETH01). 27. [`WiFiWebServer_RTL8720 library v1.0.1+`](https://github.com/khoih-prog/WiFiWebServer_RTL8720) to use Realtek RTL8720DN, etc. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer_RTL8720.svg?)](https://www.ardu-badge.com/WiFiWebServer_RTL8720). @@ -2014,7 +2014,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_Ethernet on NRF52840_FEATHER with ENC28J60 using EthernetENC Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [ETHERNET_WEBSERVER] ========================= [ETHERNET_WEBSERVER] Default SPI pinout: [ETHERNET_WEBSERVER] MOSI: 25 @@ -2068,7 +2068,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_Ethernet on NRF52840_FEATHER with W5x00 using EthernetLarge Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [ETHERNET_WEBSERVER] =========== USE_ETHERNET_LARGE =========== [ETHERNET_WEBSERVER] Default SPI pinout: [ETHERNET_WEBSERVER] MOSI: 25 @@ -2125,7 +2125,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Starting TZ_NTP_WorldClock_WiFiNINA on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 Connecting to WPA SSID: HueNet1 You're connected to the network, IP = 192.168.2.128 Listening on port 2390 @@ -2165,7 +2165,7 @@ The following is debug terminal output when running example [**RTC_STM32_Etherne ``` Start RTC_STM32_Ethernet on NUCLEO_F767ZI, using W5x00 & Ethernet2 Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 DS323x_Generic v1.2.2 [ETHERNET_WEBSERVER] Board : NUCLEO_F767ZI , setCsPin: 10 [ETHERNET_WEBSERVER] Default SPI pinout: @@ -2195,7 +2195,7 @@ The following is debug terminal output when running example [**RTC_Ethernet**](e ``` Start RTC_Ethernet on SAM DUE with W5x00 using EthernetLarge Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 DS323x_Generic v1.2.2 [ETHERNET_WEBSERVER] =========== USE_ETHERNET_LARGE =========== [ETHERNET_WEBSERVER] Default SPI pinout: @@ -2230,7 +2230,7 @@ The following is debug terminal output when running example [**RTC_Ethernet**](e ``` Start RTC_Ethernet on NRF52840_FEATHER with W5x00 using EthernetLarge Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 DS323x_Generic v1.2.2 [ETHERNET_WEBSERVER] =========== USE_ETHERNET_LARGE =========== [ETHERNET_WEBSERVER] Default SPI pinout: @@ -2272,7 +2272,7 @@ The following is debug terminal output when running example [**tzTest**](example ``` Starting TZTest on NRF52840_FEATHER -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 -------- Apr-2018 time change -------- 13:59:57 Sat 31 Mar 2018 UTC = 02:59:57 Sun 01 Apr 2018 NZDT 13:59:58 Sat 31 Mar 2018 UTC = 02:59:58 Sun 01 Apr 2018 NZDT @@ -2378,7 +2378,7 @@ The following is debug terminal output when running example [**WriteRules**](exa ``` Start WriteRules on NRF52840_FEATHER -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [TZ] Saving m_dst & m_std to TZ_file : /timezone.dat , data offset = 0 [TZ] Saving to TZ_file OK WriteRules done @@ -2403,7 +2403,7 @@ The following is debug terminal output when running example [**WriteRules**](exa ``` Start WriteRules on SAMD_NANO_33_IOT -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 WriteRules done readRules done [TZ] DST rule @@ -2424,7 +2424,7 @@ The following is debug terminal output when running example [**WriteRules**](exa ``` Start WriteRules on NUCLEO_F767ZI -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [TZ] Write to EEPROM, size = 16384 , offset = 0 WriteRules done [TZ] Read from EEPROM, size = 16384 , offset = 0 @@ -2447,7 +2447,7 @@ The following is debug terminal output when running example [**WriteRules**](exa ``` Start WriteRules -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [TZ] Writing to dueFlashStorage OK WriteRules done [TZ] Reading from dueFlashStorage OK @@ -2470,7 +2470,7 @@ The following is debug terminal output when running example [**WriteRules**](exa ``` Start WriteRules on ESP32_DEV -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [TZ] Saving m_dst & m_std to TZ_file : /timezone.dat , data offset = 0 [TZ] Saving to TZ_file OK WriteRules done @@ -2495,7 +2495,7 @@ The following is debug terminal output when running example [**WriteRules**](exa ``` Start WriteRules on ESP8266_NODEMCU -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [TZ] Saving m_dst & m_std to TZ_file : /timezone.dat , data offset = 0 [TZ] Saving to TZ_file OK WriteRules done @@ -2520,7 +2520,7 @@ The following is debug terminal output when running example [**BI_RTC_STM32_Ethe ``` Start BI_RTC_STM32_Ethernet on NUCLEO_F767ZI, using LAN8742A Ethernet & STM32Ethernet Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [ETHERNET_WEBSERVER] Board : NUCLEO_F767ZI , setCsPin: 10 [ETHERNET_WEBSERVER] Default SPI pinout: [ETHERNET_WEBSERVER] MOSI: 11 @@ -2561,7 +2561,7 @@ The following is debug terminal output when running example [**BI_RTC_Alarm_STM3 ``` Start BI_RTC_Alarm_STM32_Ethernet on NUCLEO_F767ZI, using LAN8742A Ethernet & STM32Ethernet Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [ETHERNET_WEBSERVER] Board : NUCLEO_F767ZI , setCsPin: 10 [ETHERNET_WEBSERVER] Default SPI pinout: [ETHERNET_WEBSERVER] MOSI: 11 @@ -2607,7 +2607,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_WiFiNINA on MBED NANO_RP2040_CONNECT with WiFiNINA using WiFiNINA_Generic Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 Connecting to WPA SSID: HueNet1 You're connected to the network, IP = 192.168.2.153 Listening on port 2390 @@ -2658,7 +2658,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_Ethernet on MBED RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [EWS] =========== USE_ETHERNET_LARGE =========== [EWS] Default SPI pinout: [EWS] MOSI: 3 @@ -2705,7 +2705,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_Ethernet on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 [EWS] =========== USE_ETHERNET_LARGE =========== [EWS] Default SPI pinout: [EWS] MOSI: 19 @@ -2763,8 +2763,8 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_WT32_ETH01 on WT32-ETH01 with ETH_PHY_LAN8720 -WebServer_WT32_ETH01 v1.2.0 -Timezone_Generic v1.7.1 +WebServer_WT32_ETH01 v1.3.0 +Timezone_Generic v1.7.2 ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232 FULL_DUPLEX, 100Mbps TZ_NTP_WorldClock_WT32_ETH01 started @ IP address: 192.168.2.232 @@ -2796,7 +2796,7 @@ The following is debug terminal output when running example [**TZ_NTP_WorldClock ``` Start TZ_NTP_WorldClock_RTL8720DN on Rtlduino RTL8720DN WiFiWebServer_RTL8720 v1.0.1 -Timezone_Generic v1.7.1 +Timezone_Generic v1.7.2 Current Firmware Version = 1.0.0 Attempting to connect to SSID: HueNet_5G TZ_NTP_Clock_RTL8720DN started @ IP address: 192.168.2.111 @@ -2878,12 +2878,14 @@ Many thanks for everyone for bug reporting, new feature suggesting, testing and 1. Based on and modified from the [**Jack Christensen's Timezone Library**](https://github.com/JChristensen/Timezone). 2. Thanks to good work of [Miguel Alexandre Wisintainer](https://github.com/tcpipchip) for initiating, inspriring, working with, developing, debugging and testing. 3. Thanks to **6v6gt** to contribute the new feature to allow un-initialized TZ. Check [**Timezone_Generic Library to convert UTC to local time**](https://forum.arduino.cc/index.php?topic=711259). +4. Thanks to [Maximilian Gerhardt](https://github.com/maxgerhardt) to create bug report [RP2040_RTC_Time crashes Pico, does not work #3](https://github.com/khoih-prog/RP2040_RTC/issues/3) and help investigate and fix the bug, leading to v1.7.2 +
JChristensen
⭐️ Jack Christensen

tcpipchip
Miguel Wisintainer

6v6gt
6v6gt

maxgerhardt
Maximilian Gerhardt

diff --git a/changelog.md b/changelog.md index 40465c7b..72789964 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Releases v1.7.2](#releases-v172) * [Releases v1.7.1](#releases-v171) * [Releases v1.7.0](#releases-v170) * [Releases v1.6.0](#releases-v160) @@ -27,6 +28,10 @@ ## Changelog +### Releases v1.7.2 + +1. Fix crashing issue for new cleared flash. Check [RP2040_RTC_Time crashes Pico, does not work #3](https://github.com/khoih-prog/RP2040_RTC/issues/3) + ### Releases v1.7.1 1. Update `platform.ini` and `library.json` to use original `khoih-prog` instead of `khoih.prog` after PIO fix diff --git a/library.json b/library.json index 9b6111c2..d647d951 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Timezone_Generic", - "version": "1.7.1", + "version": "1.7.2", "keywords": "timing, device, control, ntp, rtc, wifi, ethernet, WiFiNINA, SAM DUE, SAMD, nRF52, STM32, wt32-eth01, rp2040, nano-rp2040-connect, rtl8720, FlashStorage, DueFlashStorage, LittleFS, EEPROM, rpi-pico", "description": "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) boards, etc. using W5x00/ENC28J60/LAN8742A Ethernet, ESP or ESP-AT WiFi or WiFiNINA", "authors": [ @@ -79,13 +79,13 @@ { "owner": "khoih-prog", "name": "WiFiWebServer", - "version": ">=1.4.1", + "version": ">=1.4.2", "platforms": ["*"] }, { "owner": "khoih-prog", "name": "WebServer_WT32_ETH01", - "version": ">=1.2.0", + "version": ">=1.3.0", "platforms": ["*"] }, { diff --git a/library.properties b/library.properties index 6c39e5e1..074a6a22 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Timezone_Generic -version=1.7.1 +version=1.7.2 author=Jack Christensen , Khoi Hoang maintainer=Khoi Hoang sentence=Library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments. diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 2a2b65dd..d52e01a2 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -41,10 +41,10 @@ lib_deps = Time@>=1.6.1 DS323x_Generic@>=1.2.2 WiFiNINA_Generic@>=1.8.13 - WiFiWebServer@>=1.4.1 + WiFiWebServer@>=1.4.2 EthernetWebServer@>=1.7.1 EthernetWebServer_STM32@>=1.2.1 - WebServer_WT32_ETH01@>=1.2.0 + WebServer_WT32_ETH01@>=1.3.0 ESP8266_AT_WebServer@>=1.4.0 Ethernet@>=2.0.0 EthernetLarge@>=2.0.0 @@ -63,10 +63,10 @@ lib_deps = ; paulstoffregen/Time@>=1.6.1 ; khoih-prog/DS323x_Generic@>=1.2.2 ; khoih-prog/WiFiNINA_Generic@>=1.8.13 -; khoih-prog/WiFiWebServer@>=1.4.1 +; khoih-prog/WiFiWebServer@>=1.4.2 ; khoih-prog/EthernetWebServer@>=1.7.1 ; khoih-prog/EthernetWebServer_STM32@>=1.2.1 -; khoih-prog/WebServer_WT32_ETH01@>=1.2.0 +; khoih-prog/WebServer_WT32_ETH01@>=1.3.0 ; khoih-prog/ESP8266_AT_WebServer@>=1.4.0 ; PaulStoffregen/Ethernet@>=2.0.0 ; PaulStoffregen/EthernetLarge@>=2.0.0 diff --git a/src/Timezone_Generic.h b/src/Timezone_Generic.h index f3420d72..92d9aeae 100644 --- a/src/Timezone_Generic.h +++ b/src/Timezone_Generic.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -40,7 +41,7 @@ // For ESP8266, use LitteFS, SPIFFS or EEPROM. // For ESP32, use SPIFFS or EEPROM. -#define TIMEZONE_GENERIC_VERSION "Timezone_Generic v1.7.1" +#define TIMEZONE_GENERIC_VERSION "Timezone_Generic v1.7.2" #if defined(ARDUINO) && (ARDUINO >= 100) #include diff --git a/src/Timezone_Generic_Debug.h b/src/Timezone_Generic_Debug.h index 65d94b99..4dda8d5e 100644 --- a/src/Timezone_Generic_Debug.h +++ b/src/Timezone_Generic_Debug.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -56,7 +57,6 @@ const char TZ_SPACE[] = " "; #define TZ_PRINT TZ_DBG_PORT.print #define TZ_PRINTLN TZ_DBG_PORT.println -#define TZ_FLUSH TZ_DBG_PORT.flush() #define TZ_PRINT_MARK TZ_PRINT(TZ_MARK) #define TZ_PRINT_SP TZ_PRINT(TZ_SPACE) diff --git a/src/Timezone_Generic_Impl.h b/src/Timezone_Generic_Impl.h index 1ca28070..84c19a31 100644 --- a/src/Timezone_Generic_Impl.h +++ b/src/Timezone_Generic_Impl.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -471,7 +472,6 @@ void Timezone::initStorage(uint32_t address) { // Reformat if we can't mount the filesystem TZ_LOGERROR("LittleFS Mount Fail. Formatting... "); - TZ_FLUSH; err = fs.reformat(&bd); } diff --git a/src_cpp/Timezone_Generic.cpp b/src_cpp/Timezone_Generic.cpp index 2d07f2bd..7c48d20f 100644 --- a/src_cpp/Timezone_Generic.cpp +++ b/src_cpp/Timezone_Generic.cpp @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #include "Timezone_Generic.h" diff --git a/src_cpp/Timezone_Generic.h b/src_cpp/Timezone_Generic.h index 1dd780cf..c22ed14a 100644 --- a/src_cpp/Timezone_Generic.h +++ b/src_cpp/Timezone_Generic.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -40,7 +41,7 @@ // For ESP8266, use LitteFS, SPIFFS or EEPROM. // For ESP32, use SPIFFS or EEPROM. -#define TIMEZONE_GENERIC_VERSION "Timezone_Generic v1.7.1" +#define TIMEZONE_GENERIC_VERSION "Timezone_Generic v1.7.2" #if defined(ARDUINO) && (ARDUINO >= 100) #include diff --git a/src_cpp/Timezone_Generic_Debug.h b/src_cpp/Timezone_Generic_Debug.h index 65d94b99..4dda8d5e 100644 --- a/src_cpp/Timezone_Generic_Debug.h +++ b/src_cpp/Timezone_Generic_Debug.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -56,7 +57,6 @@ const char TZ_SPACE[] = " "; #define TZ_PRINT TZ_DBG_PORT.print #define TZ_PRINTLN TZ_DBG_PORT.println -#define TZ_FLUSH TZ_DBG_PORT.flush() #define TZ_PRINT_MARK TZ_PRINT(TZ_MARK) #define TZ_PRINT_SP TZ_PRINT(TZ_SPACE) diff --git a/src_h/Timezone_Generic.h b/src_h/Timezone_Generic.h index f3420d72..92d9aeae 100644 --- a/src_h/Timezone_Generic.h +++ b/src_h/Timezone_Generic.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -40,7 +41,7 @@ // For ESP8266, use LitteFS, SPIFFS or EEPROM. // For ESP32, use SPIFFS or EEPROM. -#define TIMEZONE_GENERIC_VERSION "Timezone_Generic v1.7.1" +#define TIMEZONE_GENERIC_VERSION "Timezone_Generic v1.7.2" #if defined(ARDUINO) && (ARDUINO >= 100) #include diff --git a/src_h/Timezone_Generic_Debug.h b/src_h/Timezone_Generic_Debug.h index 65d94b99..4dda8d5e 100644 --- a/src_h/Timezone_Generic_Debug.h +++ b/src_h/Timezone_Generic_Debug.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -56,7 +57,6 @@ const char TZ_SPACE[] = " "; #define TZ_PRINT TZ_DBG_PORT.print #define TZ_PRINTLN TZ_DBG_PORT.println -#define TZ_FLUSH TZ_DBG_PORT.flush() #define TZ_PRINT_MARK TZ_PRINT(TZ_MARK) #define TZ_PRINT_SP TZ_PRINT(TZ_SPACE) diff --git a/src_h/Timezone_Generic_Impl.h b/src_h/Timezone_Generic_Impl.h index 1ca28070..84c19a31 100644 --- a/src_h/Timezone_Generic_Impl.h +++ b/src_h/Timezone_Generic_Impl.h @@ -10,7 +10,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/Timezone_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 16/07/2021 Add support to WT32_ETH01 1.7.0 K Hoang 10/08/2021 Add support to Ameba Realtek RTL8720DN, RTL8722DM and RTM8722CSM 1.7.1 K Hoang 10/10/2021 Update `platform.ini` and `library.json` + 1.7.2 K Hoang 02/11/2021 Fix crashing issue for new cleared flash *****************************************************************************************************************************/ #pragma once @@ -471,7 +472,6 @@ void Timezone::initStorage(uint32_t address) { // Reformat if we can't mount the filesystem TZ_LOGERROR("LittleFS Mount Fail. Formatting... "); - TZ_FLUSH; err = fs.reformat(&bd); }