mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-09-23 22:34:57 -04:00
fw: Allow last storage area sector to be erased
This commit is contained in:
parent
2dce9828ea
commit
887883c8db
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ int storage_erase_sector(struct partition_table *part_table, uint32_t offset,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((offset + size) >= SIZE_STORAGE_AREA) {
|
if ((offset + size) > SIZE_STORAGE_AREA) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue