Use full erase when possible for FLASHFS erase
commitaaa2f9682df21ec2559e728fd3e31ae903307e74
authorBruce Luckcuck <github@etracer.net>
Sat, 25 May 2019 16:18:52 +0000 (25 12:18 -0400)
committerBruce Luckcuck <github@etracer.net>
Sat, 25 May 2019 16:23:59 +0000 (25 12:23 -0400)
tree466187ed60a18881ffbb4a496176472f61efef38
parente54ef4815a4c1db4b07fc15d7913c2ccc0aa2e6b
Use full erase when possible for FLASHFS erase
If there is only a single partition, its type is FLASHFS, and it uses the entire geometry, then perform a full rather than a sector-based erase.

The full erase is significantly faster than erasing by individual sectors.
src/main/drivers/flash.c
src/main/drivers/flash.h
src/main/io/flashfs.c