Skip to content

Commit 403456c

Browse files
co: fix wrapper
Signed-off-by: Francois Berder <[email protected]>
1 parent f8c471f commit 403456c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

letmecreate/click/co.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_measure(mikrobus_index):
1313
1414
Note: An exception is thrown if it fails to communicate with the CO click.
1515
"""
16-
value = ctypes.c_uint16_t(0)
16+
value = ctypes.c_uint16(0)
1717
ret = _LIB.co_click_get_measure(mikrobus_index, ctypes.byref(value))
1818
if ret < 0:
1919
raise Exception("co click read ppm failed")

0 commit comments

Comments
 (0)