diff --git a/contributors.txt b/contributors.txt index b869e2f..88cdf16 100644 --- a/contributors.txt +++ b/contributors.txt @@ -7,3 +7,4 @@ Brian Park - https://github.com/bxparks - Temperature as fixed point to remove f Grepis - https://github.com/grepis - Find & fix some alarm bugs prosper00 - https://github.com/prosper00 - Find & fix a bug on a example when compiling for STM32 ST cube. meltingSnowdrift - https://github.com/meltingSnowdrift - Find unhandled centiry bit. +David Brown - https://github.com/davidhbrown - Fix century bit on year read diff --git a/library.properties b/library.properties index bce6f8c..cde72ec 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=uRTCLib -version=6.2.6 +version=6.2.7 author=Naguissa maintainer=Naguissa sentence=Really tiny library to basic RTC functionality on Arduino. DS1307, DS3231 and DS3232 RTCs are supported. See https://github.com/Naguissa/uEEPROMLib for EEPROM support. Temperature, Alarms, SQWG and RAM support. diff --git a/src/uRTCLib.cpp b/src/uRTCLib.cpp index a86fed3..4e6bc11 100644 --- a/src/uRTCLib.cpp +++ b/src/uRTCLib.cpp @@ -21,7 +21,7 @@ * @see https://www.foroelectro.net/librerias-arduino-ide-f29/rtclib-arduino-libreria-simple-y-eficaz-para-rtc-y-t95.html * @see naguissa@foroelectro.net * @see See uEEPROMLib for EEPROM support. - * @version 6.2.6 + * @version 6.2.7 */ #include diff --git a/src/uRTCLib.h b/src/uRTCLib.h index fa85ec7..7b58cbc 100644 --- a/src/uRTCLib.h +++ b/src/uRTCLib.h @@ -18,7 +18,7 @@ * @see https://www.foroelectro.net/librerias-arduino-ide-f29/rtclib-arduino-libreria-simple-y-eficaz-para-rtc-y-t95.html * @see naguissa@foroelectro.net * @see See uEEPROMLib for EEPROM support. - * @version 6.2.6 + * @version 6.2.7 */ /** \file uRTCLib.h * \brief uRTCLib header file @@ -220,16 +220,25 @@ */ #define uRTCLIB_bcdToDec(val) ((uint8_t) ((val / 16 * 10) + (val % 16))) - // ESP8266 yield function (ESP32 has no need for that) + // ESP yield function (ESP32 has no need for that on dual core, but it has on single core version) #if ARDUINO_ARCH_ESP8266 + /** + * \brief ESP8266, yield to don't block ESP functionality. + * + * When this library is used in other MCUs this is simply removed by the preprocessor + */ #define uRTCLIB_YIELD yield(); #else + #if ARDUINO_ARCH_ESP32 /** - * \brief Only on ESP8266, yield to don't block ESP functionality. + * \brief ESP32, yield to don't block ESP functionality. * * When this library is used in other MCUs this is simply removed by the preprocessor */ - #define uRTCLIB_YIELD + #define uRTCLIB_YIELD yield(); + #else + #define uRTCLIB_YIELD + #endif #endif class uRTCLib {