Skip to content

Commit

Permalink
Merge pull request #410 from andreagilardoni/preferences-hotfix
Browse files Browse the repository at this point in the history
Preferences: adding  missing return statement
  • Loading branch information
pennam authored Dec 4, 2024
2 parents 03b4a91 + 149197b commit 7535391
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/Preferences/src/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ size_t Preferences::getBytes(const char* key, void * buf, size_t maxLen) {
if (modem.write(string(PROMPT(_PREF_GET)), res, "%s%s,%d\r\n", CMD_WRITE(_PREF_GET), key, PT_BLOB)) {
if (res.size() >= len && len <= maxLen) {
memcpy(buf, (uint8_t*)&res[0], len);

return len;
}
}
}
Expand Down

0 comments on commit 7535391

Please sign in to comment.