Skip to content

Commit

Permalink
fix credentials erase
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Mar 26, 2024
1 parent bbfbba6 commit 1d5d4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noisemeter-device/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d5d4d5

Please sign in to comment.