Skip to content

Commit ca4415b

Browse files
committed
touchpad: Add haptic touchpad support
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent dac7377 commit ca4415b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

framework_lib/src/touchpad.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ pub fn print_touchpad_fw_ver() -> Result<(), HidError> {
5050
" Found {:04X}:{:04X} (Usage Page {:04X})",
5151
vid, pid, usage_page
5252
);
53-
if vid != PIX_VID || (pid != 0x0274 && pid != 0x0239 && pid != 0x0360) {
53+
if vid != PIX_VID
54+
|| (pid != 0x0274 && pid != 0x0239 && pid != 0x0360 && pid != 0x0343)
55+
{
5456
debug!(
55-
" Skipping VID:PID. Expected {:04X}:{:04X}/{:04X}",
56-
PIX_VID, 0x0274, 0x0239
57+
" Skipping VID:PID. Expected {:04X}:{:04X}/{:04X}/{:04X}",
58+
PIX_VID, 0x0274, 0x0239, 0x0343
5759
);
5860
continue;
5961
}
@@ -71,6 +73,7 @@ pub fn print_touchpad_fw_ver() -> Result<(), HidError> {
7173
let ver = match pid {
7274
0x0239 => format!("{:04X}", read_239_ver(&device)?),
7375
0x0274 => format!("{:04X}", read_274_ver(&device)?),
76+
0x0343 => format!("{:04X}", read_274_ver(&device)?),
7477
0x0360 => format!("{:04X}", read_360_ver(&device)?),
7578
_ => "Unsupported".to_string(),
7679
};

0 commit comments

Comments
 (0)