Changed getpollingmessagelimit to return an int

checksum-failure-logging
EricLiu2000 2019-08-05 17:25:09 -04:00
parent 71176137ca
commit 4a81b9443a
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ bool icsneo_getMessages(const neodevice_t* device, neomessage_t* messages, size_
return true;
}
size_t icsneo_getPollingMessageLimit(const neodevice_t* device) {
int icsneo_getPollingMessageLimit(const neodevice_t* device) {
if(!icsneo_isValidNeoDevice(device))
return -1;

View File

@ -269,7 +269,7 @@ extern bool DLLExport icsneo_getMessages(const neodevice_t* device, neomessage_t
*
* See icsneo_enableMessagePolling() for more information about the message polling system.
*/
extern size_t DLLExport icsneo_getPollingMessageLimit(const neodevice_t* device);
extern int DLLExport icsneo_getPollingMessageLimit(const neodevice_t* device);
/**
* \brief Set the maximum number of messages which will be held in the API managed buffer for the specified hardware.