summaryrefslogtreecommitdiff
path: root/common/spi_flash.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-08-21 15:37:23 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-08-22 05:47:59 +0000
commit1b82905cfe66ae472cdb42f0e17c2ec94aa466c3 (patch)
treebd82db20027056415ace1b5d0d34bd8b66a26005 /common/spi_flash.c
parente307172bd581c5ec3ce2944333d09412626e6e10 (diff)
downloadchrome-ec-1b82905cfe66ae472cdb42f0e17c2ec94aa466c3.tar.gz
Add hysteresis to host events for battery capacity changed
Adds a small threshold for sending a host event to battery whenever the full capacity changes. This helps avoid constant host events when the battery decides the capacity is going back and forth 1mAh BUG=none BRANCH=none TEST=load on samus. set LFCC_EVENT_THRESHOLD to 1 and see host events very often. set LFCC_EVENT_THRESHOLD to 5 and see no host events. Change-Id: I2dc38f04e1a634539837dfed19b10ccfcfd0a8a3 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/213668 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/spi_flash.c')
0 files changed, 0 insertions, 0 deletions