Commit ae7c620
Kyle Kearney
kv_config: Remove hard fail on too few pages
STORE_SECTORS is a hard requirement. If there are fewer than 2 pages
then the kvstore will not work, because the garbage collection process
relies on having at least two sectors to work with.
STORE_PAGES is a heuristic. It is a reasonable default to use if the
application does not specify the amount of flash to use for TDBStore.
But if an application knows that a smaller number of pages will suffice
for its specific needs, then that is valid and should be permitted.1 parent 7f18a6c commit ae7c620
1 file changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 197 | | |
204 | 198 | | |
205 | 199 | | |
| |||
600 | 594 | | |
601 | 595 | | |
602 | 596 | | |
603 | | - | |
| 597 | + | |
604 | 598 | | |
605 | 599 | | |
606 | 600 | | |
| |||
0 commit comments