From 1ecb5eb795e2b0c7087145057720fac530a6e75b Mon Sep 17 00:00:00 2001 From: Scott Shumate Date: Wed, 22 Aug 2018 21:45:11 -0500 Subject: [PATCH] Fixed problem with comparing lock region count in Eefc flashes. --- src/EefcFlash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EefcFlash.cpp b/src/EefcFlash.cpp index 988c3b7e..4f614017 100644 --- a/src/EefcFlash.cpp +++ b/src/EefcFlash.cpp @@ -243,7 +243,7 @@ EefcFlash::writeOptions() uint32_t page; std::vector current; - if (_regions.get().size() >= _lockRegions) + if (_regions.get().size() > _lockRegions) throw FlashRegionError(); current = getLockRegions();