diff --git a/firmware/lib/userdb/UserDB.cpp b/firmware/lib/userdb/UserDB.cpp index f5d1a78..c5dd2f4 100644 --- a/firmware/lib/userdb/UserDB.cpp +++ b/firmware/lib/userdb/UserDB.cpp @@ -50,6 +50,7 @@ bool User::load(const String &stringId) numSessions_ = sessionsInFile; assert(expectedSize == bytesRead); + return true; } void User::init(const String &stringId, size_t sessionAllocateSize) @@ -160,6 +161,7 @@ User *UserStorage::addNewUser(const String &stringId) numUsers_++; assert(numUsers_ < MAX_USERS); users_[userIdx].init(stringId); + return &users_[userIdx]; } bool UserStorage::deleteUser(const String &stringId) @@ -173,6 +175,7 @@ bool UserStorage::deleteUser(const String &stringId) assert(numUsers_ > 0); if (userIdx != numUsers_ - 1) users_[userIdx] = users_[numUsers_ - 1]; + return true; } void UserStorage::fillFromFileSystem()