diff options
author | Hakan Berg | 2012-07-17 14:17:16 +0200 |
---|---|---|
committer | Lee Jones | 2013-03-07 12:35:44 +0800 |
commit | 908fe8d6a575e2bdf349ba8635b862eeb91f7ade (patch) | |
tree | 863d1d0caffb4dfb84a118c0d885ce0c773b080a /COPYING | |
parent | d4f510f6c3f579bac0dbeaa8dc7c2dc768c31786 (diff) |
ab8500-btemp: Filter btemp readings
Battery tempreature readings sometimes fail and results in
a value far from recent values. This patch adds a software
filter that disposes such readings, by allowing direct
updates on temperature only if two samples result in the
same temperature. Else only allow 1 degree change from previous
reported value in the direction of the new measurement.
Signed-off-by: Hakan Berg <hakan.berg@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Martin SJOBLOM <martin.w.sjoblom@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions