We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a6120 commit 30777c1Copy full SHA for 30777c1
library.properties
@@ -1,5 +1,5 @@
1
name=KeyDB
2
-version=1.1.1
+version=1.1.2
3
author=Andreas <andreas@zapsterstudios.com>
4
maintainer=Andreas <andreas@zapsterstudios.com>
5
sentence=Wrapper around EEPROM as a key storing database.
src/KeyDB.cpp
@@ -77,6 +77,10 @@ void KeyDB::addKey(String key) {
77
// Make key fixed length.
78
key = this->keyLengthen(key);
79
80
+ // Return if already exists.
81
+ if (this->keyExists(key))
82
+ return;
83
+
84
// Set index to new value.
85
int keys = this->count();
86
this->keys[keys] = key;
0 commit comments