Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nk3 update: Handle NK3CN bootloader issues #378

Closed
wants to merge 2 commits into from
Closed

Conversation

robin-nitrokey
Copy link
Member

This PR tries to fix some issues with the NK3CN bootloader, e. g. Nitrokey/nitrokey-3-firmware#250.

Changes

  • Ensure that the _get_bootloader context manager only yields once.
  • Ensure that the bootloader is opened before accessing it.

Checklist

Make sure to run make check and make fix before creating a PR, otherwise the CI will fail.

  • tested with Python3.9
  • signed commits
  • updated documentation (e.g. parameter description, inline doc, docs.nitrokey)
  • added labels

Test Environment and Execution

  • OS: Debian 11
  • device's model:
  • device's firmware version:

This patch ensures that the context manager used in
pynitrokey.nk3.updates only yields once.
This patch tries to work around a problem where the NK3CN bootloader is
not open when we try to connect to it.
@robin-nitrokey
Copy link
Member Author

Replaced by: #446

@daringer daringer deleted the nk3-update branch February 29, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nk3 update: generator didn't stop after throw()
2 participants