From 16936136f72ba14dc72dad936cc50d384dfc28db Mon Sep 17 00:00:00 2001 From: Kirk Benell Date: Fri, 18 Jul 2025 13:53:48 -0600 Subject: [PATCH] add addtional b/c method for version 1 api; bump version --- library.properties | 2 +- src/sfTk/sfDevVEML7700.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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. *