From 1d5d4d5e59b0316c547a9feb6828f20e20465800 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 26 Mar 2024 08:42:57 -0400 Subject: [PATCH] fix credentials erase --- noisemeter-device/storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noisemeter-device/storage.cpp b/noisemeter-device/storage.cpp index 8d45772..52d14a3 100644 --- a/noisemeter-device/storage.cpp +++ b/noisemeter-device/storage.cpp @@ -27,9 +27,9 @@ bool Storage::canStore(String str) const noexcept void Storage::clear() noexcept { for (auto i = 0u; i < addrOf(Entry::TotalSize); ++i) - writeByte(i, 0); + writeByte(i, 0xFF); - commit(); + EEPROMClass::commit(); } String Storage::get(Entry entry) const noexcept