From b2db0706c69c65e693d4e17eb14ea6349aeb1a50 Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Thu, 8 Nov 2012 00:28:40 +0200 Subject: [PATCH] handle better devices which do not support feature calls --- app/receiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: