Random NVS fixes

* Checking Lock::init() now
* fixed typos in nvs_flash.h
* Added missing parameter checks in nvs encryption
  function

* Closes IDF-1462
* Closes IDF-2900
This commit is contained in:
Jakob Hasse
2021-03-08 10:44:15 +08:00
parent e895e50098
commit d52a21de5c
6 changed files with 57 additions and 14 deletions
@@ -15,9 +15,7 @@
namespace nvs {
NVSHandleLocked::NVSHandleLocked(NVSHandleSimple *handle) : handle(handle) {
Lock::init();
}
NVSHandleLocked::NVSHandleLocked(NVSHandleSimple *handle) : handle(handle) { }
NVSHandleLocked::~NVSHandleLocked() {
Lock lock;