Version 1.9.3

- Big fix for flow control in HIDL interface.
This commit is contained in:
James Bootsma
2017-10-05 09:01:41 -06:00
parent c3378ccf90
commit fbdd6d8d3e
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
#define LIBANT_STACK_MAJOR "1" #define LIBANT_STACK_MAJOR "1"
#define LIBANT_STACK_MINOR "9" #define LIBANT_STACK_MINOR "9"
#define LIBANT_STACK_INCRE "2" #define LIBANT_STACK_INCRE "3"
#endif // __ANT_VERSION_H #endif // __ANT_VERSION_H

View File

@@ -129,12 +129,12 @@ public:
{ {
ant_hci.rx_cond.wait(lk); ant_hci.rx_cond.wait(lk);
} }
ant_hci.rx_processing = true;
memcpy(&aucRxBuffer[0][0], event.data(), event.size()); memcpy(&aucRxBuffer[0][0], event.data(), event.size());
iRxBufferLength[0] = event.size(); iRxBufferLength[0] = event.size();
std::unique_lock< std::mutex> lock(ant_hci.data_mtx); std::unique_lock< std::mutex> lock(ant_hci.data_mtx);
ALOGD("%s: notify data avail", __func__); ALOGD("%s: notify data avail", __func__);
ant_hci.rx_processing = true;
ant_hci.data_cond.notify_all(); ant_hci.data_cond.notify_all();
ALOGV("%s: End", __func__); ALOGV("%s: End", __func__);
return Void(); return Void();
@@ -149,12 +149,12 @@ public:
{ {
ant_hci.rx_cond.wait(lk); ant_hci.rx_cond.wait(lk);
} }
ant_hci.rx_processing = true;
memcpy(&aucRxBuffer[0][0], event.data(), event.size()); memcpy(&aucRxBuffer[0][0], event.data(), event.size());
iRxBufferLength[0] = event.size(); iRxBufferLength[0] = event.size();
std::unique_lock< std::mutex> lock(ant_hci.data_mtx); std::unique_lock< std::mutex> lock(ant_hci.data_mtx);
ALOGD("%s: notify data avail", __func__); ALOGD("%s: notify data avail", __func__);
ant_hci.rx_processing = true;
ant_hci.data_cond.notify_all(); ant_hci.data_cond.notify_all();
ALOGV("%s: exit", __func__); ALOGV("%s: exit", __func__);
return Void(); return Void();