Remove commented out code about creating partition table

This commit is contained in:
Michael Cardell Widerkrantz 2025-04-04 13:59:34 +02:00 committed by Mikael Ågren
parent f24c7ea515
commit 03625b312d
No known key found for this signature in database
GPG Key ID: E02DA3D397792C46

View File

@ -26,8 +26,6 @@ void part_digest(struct partition_table *part_table, uint8_t *out_digest, size_t
int part_table_read(struct partition_table_storage *storage)
{
// Read from flash, if it exists, otherwise create a new one.
flash_release_powerdown();
memset(storage, 0x00, sizeof(*storage));
@ -43,17 +41,6 @@ int part_table_read(struct partition_table_storage *storage)
return -1;
}
// if (part_table->header.version != PART_TABLE_VERSION) {
// // Partition table is not ours. Make a new one, and store it.
// memset(part_table, 0x00, sizeof(*part_table));
// part_table->header.version = PART_TABLE_VERSION;
// part_table_write(part_table);
// }
// Now the partition table is synced between flash and RAM.
return 0;
}