Added functionality to set blocking behavior of write

This commit is contained in:
EricLiu2000
2019-07-24 14:57:06 -04:00
parent 69b7e5b45a
commit 8c186f00cd
5 changed files with 28 additions and 0 deletions
+7
View File
@@ -437,6 +437,13 @@ bool icsneo_transmitMessages(const neodevice_t* device, const neomessage_t* mess
return true;
}
void icsneo_setWriteBlocks(const neodevice_t* device, bool blocks) {
if(!icsneo_isValidNeoDevice(device))
return;
device->device->com->setWriteBlocks(blocks);
}
bool icsneo_describeDevice(const neodevice_t* device, char* str, size_t* maxLength) {
// TAG String copy function
if(maxLength == nullptr) {