diff --git a/library.properties b/library.properties index 8aaf708..0b22268 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=SparkFun VEML7700 Arduino Library -version=2.0.0 +version=2.0.1 author=SparkFun Electronics maintainer=SparkFun Electronics sentence=Library for the VEML7700 Ambient Light Sensor diff --git a/src/sfTk/sfDevVEML7700.h b/src/sfTk/sfDevVEML7700.h index 29623c8..d56afc8 100644 --- a/src/sfTk/sfDevVEML7700.h +++ b/src/sfTk/sfDevVEML7700.h @@ -235,6 +235,18 @@ class sfDevVEML7700 * @return VEML7700_persistence_protect_t The current persistence protection setting. */ VEML7700_persistence_protect_t persistenceProtect(void); + + /** + * @brief Get the Persistence Protect object - this is for backward compatibility. + * + * @deprecated since version 2.0.0, use persistenceProtect() instead. + * @return VEML7700_persistence_protect_t + */ + VEML7700_persistence_protect_t getPersistenceProtect(void) + { + return persistenceProtect(); + } + /** * @brief Returns a string representation of the current persistence protection setting. *