Skip to content

Commit

Permalink
Merge pull request #446 from Nitrokey/lpc-upd-gen-fix
Browse files Browse the repository at this point in the history
Fix "generator didn't stop" update error for LPC55 devices
  • Loading branch information
daringer authored Sep 25, 2023
2 parents 659b308 + 099f0e9 commit f013c53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pynitrokey/nk3/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import logging
import platform
import re
import time
from abc import ABC, abstractmethod
from contextlib import contextmanager
from io import BytesIO
Expand Down Expand Up @@ -324,6 +325,9 @@ def _get_bootloader(self, device: Nitrokey3Base) -> Iterator[Nitrokey3Bootloader
"The reboot was not confirmed with the touch button"
)

# needed for udev to properly handle new device
time.sleep(1)

if platform.system() == "Darwin":
# Currently there is an issue with device enumeration after reboot on macOS, see
# <https://github.com/Nitrokey/pynitrokey/issues/145>. To avoid this issue, we
Expand Down

0 comments on commit f013c53

Please sign in to comment.