Skip to content

Commit

Permalink
fix lpc55s update timing issue, fixes #394
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Sep 21, 2023
1 parent 659b308 commit 099f0e9
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 099f0e9

Please sign in to comment.