aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pymba/vimba.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pymba/vimba.py b/pymba/vimba.py
index 1096917..f81d3c0 100644
--- a/pymba/vimba.py
+++ b/pymba/vimba.py
@@ -63,17 +63,15 @@ class Vimba(object):
"""
if self._interfaceInfos is None:
# args
- dummyInterfaceInfo = structs.VimbaInterfaceInfo()
numFound = c_uint32(-1)
# call once just to get the number of interfaces
# Vimba DLL will return an error code
- errorCode = VimbaDLL.interfacesList(byref(dummyInterfaceInfo),
+ errorCode = VimbaDLL.interfacesList(None,
0,
byref(numFound),
- sizeof(dummyInterfaceInfo))
+ sizeof(structs.VimbaInterfaceInfo))
if errorCode != 0:
- print errorCode
raise VimbaException(errorCode)
numInterfaces = numFound.value
@@ -86,7 +84,7 @@ class Vimba(object):
errorCode = VimbaDLL.interfacesList(interfaceInfoArray,
numInterfaces,
byref(numFound),
- sizeof(dummyInterfaceInfo))
+ sizeof(structs.VimbaInterfaceInfo))
if errorCode != 0:
raise VimbaException(errorCode)
self._interfaceInfos = list(