Updated status to WEAVER_STATUS_THROTTLE when the timeout value is more than 0 Bug: 327696228 Test: Vts test VtsHalWeaverTargetTest Change-Id: I9a33abf08488fceee406b5baa668b34037451228
diff --git a/libese_weaver/src/weaver-impl.cpp b/libese_weaver/src/weaver-impl.cpp index 85f950b..a253545 100644 --- a/libese_weaver/src/weaver-impl.cpp +++ b/libese_weaver/src/weaver-impl.cpp
@@ -156,6 +156,9 @@ if (mParser->ParseGetDataInfo(std::move(resp), getDataInfo) == WEAVER_STATUS_OK) { /* convert timeout from getDataInfo sec to millisecond assign same to read response */ readRespInfo.timeout = (getDataInfo.timeout * 1000); + if (getDataInfo.timeout > 0) { + status = WEAVER_STATUS_THROTTLE; + } } } }