device: report a wired device's serial number

This commit is contained in:
effective-light 2020-08-11 06:19:00 -04:00 committed by Peter F. Patel-Schneider
parent eec5df5d56
commit 535b1f02ce
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ class Device(object):
self.path = info.path
self.handle = _hid.open_path(self.path)
self.product_id = info.product_id
self._serial = ''.join(info.serial.split('-')).upper()
if self._protocol is not None:
self.features = None if self._protocol < 2.0 else _hidpp20.FeaturesArray(self)