From 03625b312dc96ff59e67ebae649afec6f71accec Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Fri, 4 Apr 2025 13:59:34 +0200 Subject: [PATCH] Remove commented out code about creating partition table --- hw/application_fpga/fw/tk1/partition_table.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hw/application_fpga/fw/tk1/partition_table.c b/hw/application_fpga/fw/tk1/partition_table.c index 01c068a..da2c9b8 100644 --- a/hw/application_fpga/fw/tk1/partition_table.c +++ b/hw/application_fpga/fw/tk1/partition_table.c @@ -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; }