Implemented legacy icsneoGetTimeStampForMsg() function call.

Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
This commit is contained in:
David Rebbe
2019-04-05 19:09:52 -04:00
parent ec30696110
commit 23c3cc3763
9 changed files with 61 additions and 4 deletions
+12 -1
View File
@@ -597,4 +597,15 @@ bool icsneo_getSupportedDevices(devicetype_t* devices, size_t* count) {
*count = len;
return true;
}
}
extern bool DLLExport icsneo_getTimestampMultiplier(const neodevice_t* device, int* multiplier)
{
if (!icsneo_isValidNeoDevice(device)) {
ErrorManager::GetInstance().add(APIError::InvalidNeoDevice);
return false;
}
*multiplier = device->device->getTimestampMultiplier();
return true;
}