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.
- {idftool-0.2.0 → idftool-0.2.1}/PKG-INFO +1 -1
- {idftool-0.2.0 → idftool-0.2.1}/idftool/__main__.py +3 -2
- {idftool-0.2.0 → idftool-0.2.1}/idftool.egg-info/PKG-INFO +1 -1
- {idftool-0.2.0 → idftool-0.2.1}/.github/workflows/build.yml +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/.github/workflows/publish.yml +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/.gitignore +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/CONTRIBUTING.md +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/LICENSE.md +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/Makefile +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/README.md +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool/__init__.py +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool/traceback.py +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool-onedir.spec +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.egg-info/SOURCES.txt +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.egg-info/dependency_links.txt +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.egg-info/entry_points.txt +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.egg-info/requires.txt +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.egg-info/top_level.txt +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.py +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/idftool.spec +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/pyproject.toml +0 -0
- {idftool-0.2.0 → idftool-0.2.1}/setup.cfg +0 -0
|
@@ -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):
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|