altos: Clear out eeprom erase records when writing entry 0
authorKeith Packard <keithp@keithp.com>
Sat, 7 Jun 2014 17:54:14 +0000 (10:54 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Jun 2014 17:54:14 +0000 (10:54 -0700)
commit5d973570ef2324b21a64477eecb0a292652ff467
treeec6c6688035b095eb21e412d9bcdf02558d7812f
parent1d6ca536c688d35b3cba0a829b04b93c5124b328
altos: Clear out eeprom erase records when writing entry 0

When writing config/erase to eeprom, there's no 'erase' operation as
on-chip eeprom is writable at a byte level. As such, we can't tell
when the erase blocks get reset when the config gets written. When
this happens, erase block 0 gets written explicitly, so just use that
call to trigger explicit erasing of the data.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_log.c