hid 1.0.6__tar.gz → 1.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hid
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: ctypes bindings for hidapi
5
5
  Home-page: https://github.com/apmorton/pyhidapi
6
6
  Author: Austin Morton
@@ -165,7 +165,7 @@ class Device(object):
165
165
  elif serial:
166
166
  serial = ctypes.create_unicode_buffer(serial)
167
167
  self.__dev = hidapi.hid_open(vid, pid, serial)
168
- elif vid and pid:
168
+ elif vid and pid is not None:
169
169
  self.__dev = hidapi.hid_open(vid, pid, None)
170
170
  else:
171
171
  raise ValueError('specify vid/pid or path')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hid
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: ctypes bindings for hidapi
5
5
  Home-page: https://github.com/apmorton/pyhidapi
6
6
  Author: Austin Morton
@@ -5,7 +5,7 @@ here = os.path.abspath(os.path.dirname(__file__))
5
5
  README = open(os.path.join(here, 'README.md')).read()
6
6
 
7
7
 
8
- version = '1.0.6'
8
+ version = '1.0.7'
9
9
 
10
10
  setup(
11
11
  name='hid',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes