mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Implement DeviceType and icsneo_getProductName
This commit is contained in:
@@ -201,4 +201,13 @@ bool icsneo_setPollingMessageLimit(const neodevice_t* device, size_t newLimit) {
|
||||
|
||||
device->device->setPollingMessageLimit(newLimit);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool icsneo_getProductName(const neodevice_t* device, char* str, size_t* maxLength) {
|
||||
if(!icsneo_isValidNeoDevice(device))
|
||||
return false;
|
||||
|
||||
*maxLength = device->device->getType().toString().copy(str, *maxLength);
|
||||
str[*maxLength + 1] = '\0';
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user