Skip to content

Commit

Permalink
Fixed problem with comparing lock region count in Eefc flashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shumatech committed Aug 23, 2018
1 parent b176eee commit 1ecb5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EefcFlash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ EefcFlash::writeOptions()
uint32_t page;
std::vector<bool> current;

if (_regions.get().size() >= _lockRegions)
if (_regions.get().size() > _lockRegions)
throw FlashRegionError();

current = getLockRegions();
Expand Down

0 comments on commit 1ecb5eb

Please sign in to comment.