Skip to content

Commit 38d3288

Browse files
Fixed a crash when calling ics.find_devices(). Issue #15.
-Only happens when icsneo40.dll is missing icsneoFindNeoDevicesNewStyle(). Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
1 parent 600861f commit 38d3288

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/methods.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,6 @@ PyObject* meth_find_devices(PyObject* self, PyObject* args, PyObject* keywords)
218218
delete[] device_type_list;
219219
device_type_list = NULL;
220220
}
221-
if (!PyLong_CheckExact(device_type)) {
222-
Py_BLOCK_THREADS
223-
return set_ics_exception(exception_runtime_error(), "device_type argument is not of type long");
224-
}
225221
ice::Function<int __stdcall (unsigned long, NeoDevice*, int*)> icsneoFindNeoDevices(lib, "icsneoFindNeoDevices");
226222
if (ex_options == -1 && !icsneoFindNeoDevices(legacy_dev_type, devices, &count)) {
227223
Py_BLOCK_THREADS

0 commit comments

Comments
 (0)