mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
icsneolegacy icsneoOpenNeoDevice return now checks success for setting polling message limit and enabling message polling too
This commit is contained in:
@@ -163,9 +163,8 @@ int icsneoOpenNeoDevice(NeoDevice* pNeoDevice, void** hObject, unsigned char* bN
|
|||||||
*hObject = device;
|
*hObject = device;
|
||||||
if(!icsneo_openDevice(device))
|
if(!icsneo_openDevice(device))
|
||||||
return false;
|
return false;
|
||||||
icsneo_setPollingMessageLimit(device, 20000);
|
|
||||||
icsneo_enableMessagePolling(device);
|
return icsneo_setPollingMessageLimit(device, 20000) && icsneo_enableMessagePolling(device) && icsneo_goOnline(device);
|
||||||
return icsneo_goOnline(device);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int icsneoClosePort(void* hObject, int* pNumberOfErrors) {
|
int icsneoClosePort(void* hObject, int* pNumberOfErrors) {
|
||||||
|
|||||||
Reference in New Issue
Block a user