@@ -661,7 +661,7 @@ static PyTypeObject port_instance_token_t = {
661
661
static PyMemberDef action_capsule_members [] = {
662
662
{"action" , T_OBJECT , offsetof(generic_action_capsule_struct , action ), 0 , "The pointer to the C action struct" },
663
663
{"value" , T_OBJECT , offsetof(generic_action_capsule_struct , value ), 0 , "Value of the action" },
664
- {"is_present" , T_BOOL , offsetof(generic_action_capsule_struct , value ), 0 , "Check that shows if action is present" },
664
+ {"is_present" , T_BOOL , offsetof(generic_action_capsule_struct , is_present ), 0 , "Check that shows if action is present" },
665
665
{NULL } /* Sentinel */
666
666
};
667
667
@@ -856,7 +856,7 @@ PyObject* convert_C_port_to_py(void* port, int width) {
856
856
if (cport -> value == NULL ) {
857
857
// Value is absent
858
858
Py_INCREF (Py_None );
859
- ((generic_action_capsule_struct * )cap )-> value = Py_None ;
859
+ ((generic_port_capsule_struct * )cap )-> value = Py_None ;
860
860
return cap ;
861
861
}
862
862
@@ -866,7 +866,7 @@ PyObject* convert_C_port_to_py(void* port, int width) {
866
866
else {
867
867
// Value is absent
868
868
Py_INCREF (Py_None );
869
- ((generic_action_capsule_struct * )cap )-> value = Py_None ;
869
+ ((generic_port_capsule_struct * )cap )-> value = Py_None ;
870
870
((generic_port_capsule_struct * )cap )-> is_present = false;
871
871
}
872
872
0 commit comments