Skip to content

Commit a4b4ffc

Browse files
Fixes for #164
1 parent 2c22fc8 commit a4b4ffc

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

include/object_neo_device.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct
4949
{
5050
PyObject_HEAD NeoDevice dev;
5151
PyObject* name;
52-
char auto_cleanup;
52+
bool auto_cleanup;
5353
ICS_HANDLE handle;
5454
PyObject* dict;
5555
} neo_device_object;
@@ -67,19 +67,14 @@ static PyMemberDef neo_device_object_members[] = {
6767
{ "MaxAllowedClients", T_INT, offsetof(neo_device_object, dev.MaxAllowedClients), 0, "" },
6868
{ "AutoHandleClose",
6969
T_BOOL,
70-
offsetof(neo_device_object, dev.MaxAllowedClients),
70+
offsetof(neo_device_object, auto_cleanup),
7171
0,
7272
"When " NEO_DEVICE_OBJECT_NAME " is freed the handle will automatically be closed, if true." },
7373
{ "_Handle",
7474
ICS_HANDLE_PY_TYPE,
7575
offsetof(neo_device_object, handle),
7676
0,
7777
"This contains the handle returned from icsneoOpenDevice() API. If uncertain, don't use this." },
78-
{ "IsOpen",
79-
T_BOOL,
80-
offsetof(neo_device_object, handle),
81-
0,
82-
"This contains the handle returned from icsneoOpenDevice() API. If uncertain, don't use this." },
8378
{ NULL, 0, 0, 0, 0 },
8479
};
8580

0 commit comments

Comments
 (0)