Skip to content

Commit

Permalink
encrypt FOUND?! #2
Browse files Browse the repository at this point in the history
  • Loading branch information
horw committed Feb 2, 2024
1 parent d501889 commit 8bbdafa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pytest-embedded-idf/pytest_embedded_idf/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

class FlashFile(NamedTuple):
offset: int
offset_s: int
file_path: str
encrypted: bool = False

Expand Down Expand Up @@ -249,7 +248,6 @@ def _is_encrypted(_flash_args: Dict[str, Any], _offset: int, _file_path: str):
flash_files.append(
FlashFile(
int(offset, 0),
offset,
os.path.join(self.binary_path, file_path),
_is_encrypted(flash_args, offset, file_path),
)
Expand Down
4 changes: 2 additions & 2 deletions pytest-embedded-idf/pytest_embedded_idf/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ def flash(self) -> None:

encrypt_files = []
for file in self.app.flash_files:
_args.append(file.offset_s)
_args.append(hex(file.offset))
_args.append(file.file_path)

if file.encrypted:
encrypt_files.append(file.offset_s)
encrypt_files.append(hex(file.offset))
encrypt_files.append(str(file.file_path))

print('NN', self.app.flash_args['flash_files'])
Expand Down

0 comments on commit 8bbdafa

Please sign in to comment.