upektc_img: Fix protocol for area sensors

This commit is contained in:
Toni
2022-10-12 07:51:54 +02:00
committed by Vasily Khoruzhick
parent 522b481297
commit cda4e6136c
2 changed files with 43 additions and 7 deletions

View File

@@ -78,6 +78,22 @@ static const unsigned char upek2020_init_capture[] = {
0x25, 0xa9 /* CRC */
};
static const unsigned char upek2020_init_capture_press[] = {
'C', 'i', 'a', 'o',
0x00,
0x00, 0x0e, /* Seq = 7, len = 0x00e */
0x28, /* CMD = 0x28 */
0x0b, 0x00, /* Inner len = 0x000b */
0x00, 0x00,
0x0e, /* SUBCMD = 0x0e */
0x02,
0xfe, 0xff, 0xff, 0xff, /* timeout = -2 = 0xfffffffe = infinite time */
0x02,
0x01, /* Wait for finger */
0x02,
0x14, 0x9a /* CRC */
};
#if 0
static const unsigned char finger_status[] = {
'C', 'i', 'a', 'o',