diff options
author | Vic Yang <victoryang@chromium.org> | 2014-06-10 11:08:13 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-06-11 00:13:59 +0000 |
commit | f317b4de30681026bc2284c6c2643b53afb8262b (patch) | |
tree | 1628a1289d4fa027cd93a69727f82da51b85d14d | |
parent | 93bbf29aad63dd18edbe4e683aa74a04ba690e20 (diff) | |
download | chrome-ec-f317b4de30681026bc2284c6c2643b53afb8262b.tar.gz |
Keyborg: fix a bug in fast scan mode
The fast scan buffer is of type 32-bit integer, so the byte size is 4
times of its size.
BUG=None
TEST=Check buffer is fully cleared after each frame
BRANCH=None
Change-Id: I0980e418a4b323195fec56f4970aca3918a6ee11
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/203205
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/keyborg/touch_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/keyborg/touch_scan.c b/board/keyborg/touch_scan.c index 01642d2958..bd66c8f0b1 100644 --- a/board/keyborg/touch_scan.c +++ b/board/keyborg/touch_scan.c @@ -153,7 +153,7 @@ int fast_scan(uint32_t *data) { int col; - memset(data, 0, SCAN_BUF_SIZE); + memset(data, 0, SCAN_BUF_SIZE * 4); STM32_PMSE_MRCR = 1 << 31; for (col = 0; col < COL_COUNT * 2; ++col) { |