Skip to content

Commit 646492d

Browse files
committed
fix(esptool_py): Fix NVS partition being incorrectly marked as encrypted
- The CMake function esptool_py_partition_needs_encryption() in the esptool_py component used to mark NVS partition as encrypted, instead it should have marked the NVS keys partition as encrypted.
1 parent 4338179 commit 646492d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/esptool_py/project_include.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@ function(esptool_py_partition_needs_encryption retencrypted partition_name)
289289
# - DATA 0x01
290290
# Subtypes:
291291
# - ota 0x00
292-
# - nvs 0x02
293-
# If the partition is an app, an OTA or an NVS partition, then it should
292+
# - nvs_keys 0x04
293+
# If the partition is an app, an OTA or an NVS keys partition, then it should
294294
# be encrypted
295295
if(
296296
(${type} EQUAL 0) OR
297297
(${type} EQUAL 1 AND ${subtype} EQUAL 0) OR
298-
(${type} EQUAL 1 AND ${subtype} EQUAL 2)
298+
(${type} EQUAL 1 AND ${subtype} EQUAL 4)
299299
)
300300
set(encrypted TRUE)
301301
endif()

0 commit comments

Comments
 (0)