diff --git a/hw/application_fpga/fw/tk1/storage.c b/hw/application_fpga/fw/tk1/storage.c index 16f6d93..b1be7b9 100644 --- a/hw/application_fpga/fw/tk1/storage.c +++ b/hw/application_fpga/fw/tk1/storage.c @@ -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; }