Skip to content

Commit 0de3011

Browse files
authored
initialise returns positive int if false 1 if true (#214)
1 parent 12b40f9 commit 0de3011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microscope/stages/linkam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ def init_sdk():
991991
]
992992
for p in lpaths:
993993
lskpath = os.path.join(p, "Linkam.lsk")
994-
if _lib.linkamInitialiseSDK(sdk_log, lskpath.encode(), True):
994+
if _lib.linkamInitialiseSDK(sdk_log, lskpath.encode(), True) == 1:
995995
break
996996
else:
997997
raise microscope.LibraryLoadError(

0 commit comments

Comments
 (0)