diff --git a/app/receiver.py b/app/receiver.py index f82c133e..9c928ea2 100644 --- a/app/receiver.py +++ b/app/receiver.py @@ -37,7 +37,7 @@ class _FeaturesArray(object): except _api._FeatureNotSupported: self.supported = False else: - count = _base.request(handle, self.device.number, _pack('!BB', index, 0x00)) + count = None if index is None else _base.request(handle, self.device.number, _pack('!BB', index, 0x00)) if count is None: self.supported = False else: