diff --git a/lib/logitech/unifying_receiver/receiver.py b/lib/logitech/unifying_receiver/receiver.py index b3cdf982..7ca5c790 100644 --- a/lib/logitech/unifying_receiver/receiver.py +++ b/lib/logitech/unifying_receiver/receiver.py @@ -55,7 +55,7 @@ class PairedDevice(object): self.online = bool(ord(link_notification.data[0:1]) & 0x40) self.wpid = _strhex(link_notification.data[2:3] + link_notification.data[1:2]) assert link_notification.address == (0x04 if unifying else 0x03) - kind = ord(link_notification.data[1:2]) & 0x0F + kind = ord(link_notification.data[0:1]) & 0x0F self._kind = _hidpp10.DEVICE_KIND[kind] if unifying: diff --git a/lib/solaar/listener.py b/lib/solaar/listener.py index 28b20aab..c5ce6504 100644 --- a/lib/solaar/listener.py +++ b/lib/solaar/listener.py @@ -170,7 +170,7 @@ class ReceiverListener(_listener.EventsListener): return if not already_known: - # _log.info("%s triggered new device %s", n, dev) + _log.info("%s triggered new device %s (%s)", n, dev, dev.kind) dev.status = _status.DeviceStatus(dev, self._status_changed) dev.status.configuration = configuration # the receiver changed status as well