File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ def ffi_bool_ptr(val: Optional[bool]):
298
298
Convert a bool value to a bool pointer for FFI.
299
299
If 'val' is None then we return None (which acts as a null pointer)
300
300
"""
301
- if n is None :
301
+ if val is None :
302
302
return None
303
303
304
304
return pointer (c_bool (val ))
@@ -572,6 +572,7 @@ def __init__(
572
572
notify_a : Optional [bool ] = None ,
573
573
notify_b : Optional [bool ] = None ,
574
574
) -> None :
575
+ c_pp = None
575
576
if pp_a is not None :
576
577
c_pp = 0
577
578
elif pp_b is not None :
@@ -587,7 +588,7 @@ def __init__(
587
588
ffi_uint8_ptr (b_id ),
588
589
ffi_bool_ptr (notify_a ),
589
590
ffi_bool_ptr (notify_b ),
590
- ffi_uint8_ptr (pp_val ),
591
+ ffi_uint8_ptr (c_pp ),
591
592
)
592
593
593
594
@property
You can’t perform that action at this time.
0 commit comments