diff --git a/src/common/inc/ant_version.h b/src/common/inc/ant_version.h index fea1d60..1a84247 100644 --- a/src/common/inc/ant_version.h +++ b/src/common/inc/ant_version.h @@ -21,7 +21,7 @@ #define LIBANT_STACK_MAJOR "1" #define LIBANT_STACK_MINOR "9" -#define LIBANT_STACK_INCRE "2" +#define LIBANT_STACK_INCRE "3" #endif // __ANT_VERSION_H diff --git a/src/qcomm-hidl/AntHidlClient.cpp b/src/qcomm-hidl/AntHidlClient.cpp index 1e90cfc..50e03ba 100644 --- a/src/qcomm-hidl/AntHidlClient.cpp +++ b/src/qcomm-hidl/AntHidlClient.cpp @@ -129,12 +129,12 @@ public: { ant_hci.rx_cond.wait(lk); } - ant_hci.rx_processing = true; memcpy(&aucRxBuffer[0][0], event.data(), event.size()); iRxBufferLength[0] = event.size(); std::unique_lock< std::mutex> lock(ant_hci.data_mtx); ALOGD("%s: notify data avail", __func__); + ant_hci.rx_processing = true; ant_hci.data_cond.notify_all(); ALOGV("%s: End", __func__); return Void(); @@ -149,12 +149,12 @@ public: { ant_hci.rx_cond.wait(lk); } - ant_hci.rx_processing = true; memcpy(&aucRxBuffer[0][0], event.data(), event.size()); iRxBufferLength[0] = event.size(); std::unique_lock< std::mutex> lock(ant_hci.data_mtx); ALOGD("%s: notify data avail", __func__); + ant_hci.rx_processing = true; ant_hci.data_cond.notify_all(); ALOGV("%s: exit", __func__); return Void();