Skip to content

Conversation

kelnos
Copy link
Member

@kelnos kelnos commented Sep 3, 2021

Uses the ESP-IDF defaults for the offsets and sizes of the nvs and phy_init partitions. The factory partition was originally being written in the ESP-IDF default location, so it didn't need to move.

This also changes the Partition constructor; there's no need to pass the partition type since it can be inferred from the subtype.

@kelnos kelnos force-pushed the better-default-esp32-parttable branch from ea8212d to 28fc3ed Compare September 4, 2021 05:32
The partition type can be inferred from the SubType enum, so no need to
pass both.
@kelnos kelnos force-pushed the better-default-esp32-parttable branch from 28fc3ed to bfba9a0 Compare September 4, 2021 07:33
@kelnos kelnos changed the title Write the ESP32 parition table with nvs and phy_init partitions Write the ESP32 & ESP32-C3 partition table with nvs and phy_init partitions Sep 4, 2021
@icewind1991 icewind1991 merged commit af5bf78 into esp-rs:master Sep 4, 2021
APP_SIZE,
);
)
.to_bytes();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, that was dumb. Thanks for fixing that up.

@kelnos kelnos deleted the better-default-esp32-parttable branch September 5, 2021 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants