The first time, the flash memory is full of garbage. It needs to be marked as empty.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-01-03 23:52:35 +01:00
parent 7c0321f4f3
commit eab3e5b73d
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -130,9 +130,8 @@ flash_do_storage_init (const uint8_t **p_do_start, const uint8_t **p_do_end)
if (gen0 == 0xffff && gen1 == 0xffff)
{
/* It's terminated. */
*p_do_start = *p_do_end = NULL;
return;
gen0 = 0x0000;
*gen0_p = gen0;
}
if (gen0 == 0xffff)