fw: Allow last storage area sector to be erased

This commit is contained in:
Mikael Ågren 2025-05-13 10:39:02 +02:00
parent 2dce9828ea
commit 887883c8db
No known key found for this signature in database
GPG key ID: E02DA3D397792C46

View file

@ -197,7 +197,7 @@ int storage_erase_sector(struct partition_table *part_table, uint32_t offset,
return -1;
}
if ((offset + size) >= SIZE_STORAGE_AREA) {
if ((offset + size) > SIZE_STORAGE_AREA) {
return -1;
}