Skip to content

Commit 1693613

Browse files
committed
add addtional b/c method for version 1 api; bump version
1 parent d596964 commit 1693613

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun VEML7700 Arduino Library
2-
version=2.0.0
2+
version=2.0.1
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for the VEML7700 Ambient Light Sensor

src/sfTk/sfDevVEML7700.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ class sfDevVEML7700
235235
* @return VEML7700_persistence_protect_t The current persistence protection setting.
236236
*/
237237
VEML7700_persistence_protect_t persistenceProtect(void);
238+
239+
/**
240+
* @brief Get the Persistence Protect object - this is for backward compatibility.
241+
*
242+
* @deprecated since version 2.0.0, use persistenceProtect() instead.
243+
* @return VEML7700_persistence_protect_t
244+
*/
245+
VEML7700_persistence_protect_t getPersistenceProtect(void)
246+
{
247+
return persistenceProtect();
248+
}
249+
238250
/**
239251
* @brief Returns a string representation of the current persistence protection setting.
240252
*

0 commit comments

Comments
 (0)