Skip to content

Commit 1714205

Browse files
committed
actually use the correct partition table when saving
1 parent eaf2afe commit 1714205

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

espflash/src/chip/esp32/partition_table.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ impl PartitionTable {
8787
}
8888

8989
pub fn to_bytes(&self) -> Vec<u8> {
90-
let table = PartitionTable::basic(0x10000, 0x3f0000);
91-
9290
let mut result = Vec::with_capacity(PARTITION_TABLE_SIZE);
93-
table.save(&mut result).unwrap();
91+
self.save(&mut result).unwrap();
9492
result
9593
}
9694

0 commit comments

Comments
 (0)