Skip to content

Commit 5ae50ca

Browse files
committed
Fixed #112
1 parent 43bd68f commit 5ae50ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avaspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def callback(self, handle, error):
222222
# please use AVS_Measure instead using Windows messaging or polling
223223

224224
def AVS_MeasureCallback(handle, func, nummeas):
225-
CBTYPE = ctypes.CFUNCTYPE(None, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int))
225+
CBTYPE = ctypes.WINFUNCTYPE(None, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int))
226226
lib = ctypes.WinDLL("avaspecx64.dll")
227227
prototype = ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_int, CBTYPE, ctypes.c_uint16)
228228
paramflags = (1, "handle",), (1, "adres",), (1, "nummeas"),

0 commit comments

Comments
 (0)