Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
93 stars 28 forks source link

Fix "generator didn't stop" update error for LPC55 devices #446

Closed daringer closed 9 months ago

daringer commented 9 months ago

This PR fixes the:

Exception encountered: RuntimeError("generator didn't stop after throw()")

error by introducing a time.sleep(1) directly after asking the device to boot into the bootloader so that udev has enough time to properly handle the new device.

Checklist

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

Test Environment and Execution

Fixes #394