idftool 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: idftool
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Utility for flashing, provisioning, and interacting with Espressif SOCs running ESP-IDF
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Source, https://github.com/nebkat/idftool
@@ -14,7 +14,7 @@ from serial.tools.list_ports_common import ListPortInfo
14
14
  from idftool.traceback import install as install_excepthook, print_exception
15
15
 
16
16
  from esp_idf_defs import ImageMetadata, ChipId
17
- from esp_idf_defs.otadata import OtaDataParameters, OtaDataSelectEntry
17
+ from esp_idf_defs.otadata import OtaDataParameters, OtaDataSelectEntry, OtaImageState
18
18
  from esp_idf_defs.partitions import PARTITION_TABLE_SIZE, PARTITION_TABLE_OFFSET, PartitionTable, print_partition_table, \
19
19
  PartitionDefinition, BOOTLOADER_TYPE, SUBTYPES, PARTITION_TABLE_TYPE, APP_TYPE, NUM_PARTITION_SUBTYPE_APP_OTA, \
20
20
  DATA_TYPE
@@ -451,7 +451,7 @@ def command_get_boot(esp: ESPLoader, partition_table: PartitionTable):
451
451
  if otadata.slot is None:
452
452
  print("OTA slot not set")
453
453
  else:
454
- print(f"OTA slot 'ota_{otadata.slot}' (seq={otadata.otadata.seq}, state={otadata.otadata.ota_state})")
454
+ print(f"OTA slot 'ota_{otadata.slot}' (seq={otadata.otadata.seq}, state={otadata.otadata.ota_state.name})")
455
455
 
456
456
  def command_set_boot(esp: ESPLoader, partition_table: PartitionTable, label: str):
457
457
  otadata_partition, otadata = read_otadata(esp, partition_table)
@@ -465,6 +465,7 @@ def command_set_boot(esp: ESPLoader, partition_table: PartitionTable, label: str
465
465
 
466
466
  print(f"Setting boot partition to '{partition.name}'...")
467
467
  otadata = otadata.incremented_and_swapped(ota_slot)
468
+ otadata.otadata.ota_state = OtaImageState.VALID
468
469
  write_otadata(esp, otadata_partition, otadata)
469
470
 
470
471
  def command_clear_boot(esp: ESPLoader, partition_table: PartitionTable):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: idftool
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Utility for flashing, provisioning, and interacting with Espressif SOCs running ESP-IDF
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Source, https://github.com/nebkat/idftool
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes