mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
spi_flash: minor cleanup, use type/subtype from esp_partition.h
This commit is contained in:
@@ -222,9 +222,9 @@ static esp_err_t load_partitions(void)
|
|||||||
if (!esp_flash_encryption_enabled()) {
|
if (!esp_flash_encryption_enabled()) {
|
||||||
/* If flash encryption is not turned on, no partitions should be treated as encrypted */
|
/* If flash encryption is not turned on, no partitions should be treated as encrypted */
|
||||||
item->info.encrypted = false;
|
item->info.encrypted = false;
|
||||||
} else if (entry.type == PART_TYPE_APP
|
} else if (entry.type == ESP_PARTITION_TYPE_APP
|
||||||
|| (entry.type == PART_TYPE_DATA && entry.subtype == PART_SUBTYPE_DATA_OTA)
|
|| (entry.type == ESP_PARTITION_TYPE_DATA && entry.subtype == ESP_PARTITION_SUBTYPE_DATA_OTA)
|
||||||
|| (entry.type == PART_TYPE_DATA && entry.subtype == PART_SUBTYPE_DATA_NVS_KEYS)) {
|
|| (entry.type == ESP_PARTITION_TYPE_DATA && entry.subtype == ESP_PARTITION_SUBTYPE_DATA_NVS_KEYS)) {
|
||||||
/* If encryption is turned on, all app partitions and OTA data
|
/* If encryption is turned on, all app partitions and OTA data
|
||||||
are always encrypted */
|
are always encrypted */
|
||||||
item->info.encrypted = true;
|
item->info.encrypted = true;
|
||||||
|
Reference in New Issue
Block a user