summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuryaprakash.konduru <suryaprakash.konduru@nxp.com>2024-03-04 10:06:36 +0530
committerSuryaprakash Konduru <suryaprakash.konduru@nxp.com>2024-03-23 18:15:48 +0000
commit445b6460baff50a2f22eeed4a0aef70bece6fdb0 (patch)
treee197fb4f52a99b9597c8dd7024c90677f5931698
parenta8df0a97e1c356d6c9354ee0a93416fc782337e7 (diff)
downloadweaver-master.tar.gz
Updated status to WEAVER_STATUS_THROTTLE when the timeout value isHEADmastermain
more than 0 Bug: 327696228 Test: Vts test VtsHalWeaverTargetTest Change-Id: I9a33abf08488fceee406b5baa668b34037451228
-rw-r--r--libese_weaver/src/weaver-impl.cpp3
1 files changed, 3 insertions, 0 deletions
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 @@ Status_Weaver WeaverImpl::Read(uint32_t slotId, const std::vector<uint8_t> &key,
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;
+ }
}
}
}