mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-18 06:15:53 -04:00
Remove commented out code about creating partition table
This commit is contained in:
parent
f24c7ea515
commit
03625b312d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user