summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhaoyang yin <yinzhaoyang@huawei.com>2015-09-21 00:38:43 +0800
committerAndre Eisenbach <eisenbach@google.com>2015-09-22 11:23:21 -0700
commit9ac18e70df13c2723ad9a8e7460ba0129fda7a03 (patch)
tree3b4150137aa283430a18f187593f277186df6596
parent00f5e91d255b35230051b14810ae201090e8d7b1 (diff)
downloadlibbt-9ac18e70df13c2723ad9a8e7460ba0129fda7a03.tar.gz
Need to set lmp_proc_cb.btwrite_active even though PROC_BTWRITE_TIMER_TIMEOUT_MS is set to 0. Otherwise, btwrite would be written very frequently. Bug: 24201064 Change-Id: I3aec20bc52552f9181ccd1a257f1a04492999a68
-rw-r--r--src/upio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/upio.c b/src/upio.c
index 3f73482..d24d496 100644
--- a/src/upio.c
+++ b/src/upio.c
@@ -507,6 +507,10 @@ void upio_set(uint8_t pio, uint8_t action, uint8_t polarity)
}
#endif
+#if (BT_WAKE_VIA_PROC_NOTIFY_DEASSERT == TRUE)
+ lpm_proc_cb.btwrite_active = TRUE;
+#endif
+
UPIODBG("%s: proc btwrite assertion, buffer: %c, timer_armed %d %d",
__FUNCTION__, buffer, lpm_proc_cb.btwrite_active, lpm_proc_cb.timer_created);