kopia lustrzana https://gitlab.com/sane-project/backends
pixma: add button support for CanoScan LiDE400
rodzic
c784e82d65
commit
ab1b746c69
|
@ -1021,6 +1021,14 @@ handle_interrupt (pixma_t * s, int timeout)
|
||||||
if (buf[7] & 2)
|
if (buf[7] & 2)
|
||||||
s->events = PIXMA_EV_BUTTON2 | buf[11] | buf[10]<<8 | buf[12]<<16; /* b/w scan */
|
s->events = PIXMA_EV_BUTTON2 | buf[11] | buf[10]<<8 | buf[12]<<16; /* b/w scan */
|
||||||
}
|
}
|
||||||
|
else if (s->cfg->pid == LIDE400_PID)
|
||||||
|
/* unknown value in buf[4]
|
||||||
|
* target in buf[0x13]
|
||||||
|
* always set button-1 */
|
||||||
|
{
|
||||||
|
if (buf[0x13])
|
||||||
|
s->events = PIXMA_EV_BUTTON1 | buf[0x13];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
/* button no. in buf[0]
|
/* button no. in buf[0]
|
||||||
* original in buf[0]
|
* original in buf[0]
|
||||||
|
|
|
@ -1298,5 +1298,5 @@
|
||||||
:model "CanoScan LiDE 400"
|
:model "CanoScan LiDE 400"
|
||||||
:interface "USB"
|
:interface "USB"
|
||||||
:usbid "0x04a9" "0x1912"
|
:usbid "0x04a9" "0x1912"
|
||||||
:status :good
|
:status :complete
|
||||||
:comment "Support up to 4800DPI (Note: does not have less than 300DPI support, buttons not working)"
|
:comment "Support up to 4800DPI (Note: does not have less than 300DPI support)"
|
||||||
|
|
Ładowanie…
Reference in New Issue