Skip to content

Commit 510c647

Browse files
author
Josh Tsai
committed
Modified the cmd length in setup touchpad function
The array of cmd length is 4 instead of 5 Signed-off-by: Josh Tsai <josh_tsai@compal.com>
1 parent 6288137 commit 510c647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

board/hx30/ps2mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void setup_touchpad(void)
305305
/* These are touchpad firmware dependent
306306
* They set the touchpad into the mouse device mode, instead of PTP mode
307307
* And are based on the HID descriptor for our unique device */
308-
const static uint16_t cmd[5] = {0x0336, 0x0023, 0x0004, 0x0006};
308+
const static uint16_t cmd[4] = {0x0336, 0x0023, 0x0004, 0x0006};
309309

310310
rv = i2c_write_offset16_block(I2C_PORT_TOUCHPAD,
311311
TOUCHPAD_I2C_HID_EP | I2C_FLAG_ADDR16_LITTLE_ENDIAN,

0 commit comments

Comments
 (0)