JChristensen / Timezone

Arduino library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments.
GNU General Public License v3.0
282 stars 98 forks source link

Lack of ESP32 platform support #65

Open klosso opened 2 years ago

klosso commented 2 years ago

I have worked with clock based on esp32 board with this very good lib, but there is lack of support for EEPROM for writing and reading. I have locally added support but, don't know haw to push this with review.

here is pure diff if You are interest : ` diff --git a/library.properties b/library.properties index 983999e..6e1c9c1 100644 --- a/library.properties +++ b/library.properties @@ -6,5 +6,5 @@ sentence=Arduino library to facilitate time zone conversions and automatic dayli paragraph=The primary aim of the Timezone library is to convert Universal Coordinated Time (UTC) to the correct local time, whether it is daylight saving time (a.k.a. summer time) or standard time. category=Timing url=https://github.com/JChristensen/Timezone -architectures=avr +architectures=avr,esp32 depends=Time diff --git a/src/Timezone.cpp b/src/Timezone.cpp index fbf4fdf..8f4da0f 100644 --- a/src/Timezone.cpp +++ b/src/Timezone.cpp @@ -11,7 +11,9 @@

ifdef AVR

 #include <avr/eeprom.h>

endif

- +#ifdef ESP_PLATFORM

-#ifdef AVR +#if defined(AVR) || defined(ESP_PLATFORM) /----------------------------------------------------------------------

+#ifdef ESP_PLATFORM +/----------------------------------------------------------------------

FallenRecruit commented 2 years ago

any chance I could get a link to the files that you have changed or a better paste of the code changes / additions

scarolan commented 1 year ago

Me too! Or maybe we can help you get this into a pull request, @klosso