Skip to content

Commit

Permalink
List NK3 and NKPK devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerklinger committed Jan 14, 2025
1 parent 0e3682c commit d29a6e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion nitrokeyapp/device_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def __init__(self, device: TrussedBase) -> None:

@classmethod
def list(cls) -> List["DeviceData"]:
return [cls(dev) for dev in nk3.list()]
nk3_devices = [cls(dev) for dev in nk3.list()]
nkpk_devices = [cls(dev) for dev in nkpk.list()]
return nk3_devices + nkpk_devices

@property
def name(self) -> str:
Expand Down
3 changes: 1 addition & 2 deletions nitrokeyapp/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def detect_added_devices(
logger.info("failed adding device")
return

# add as nk3 device
logger.info(f"nk3 connected: {devs}")
logger.info(f"Connected devices: {devs}")

self.trigger_update_devices.emit()

Expand Down

0 comments on commit d29a6e5

Please sign in to comment.