kopia lustrzana https://gitlab.com/sane-project/backends
Added support for Canon Pixma MX340 buttons buf[7] and ADF status buf[8]
rodzic
245564dffe
commit
4a76bbd162
|
@ -909,6 +909,7 @@ handle_interrupt (pixma_t * s, int timeout)
|
|||
|| s->cfg->pid == MG5400_PID
|
||||
|| s->cfg->pid == MG6200_PID
|
||||
|| s->cfg->pid == MG6300_PID
|
||||
|| s->cfg->pid == MX340_PID
|
||||
|| s->cfg->pid == MX520_PID
|
||||
|| s->cfg->pid == MX720_PID
|
||||
|| s->cfg->pid == MX920_PID
|
||||
|
@ -939,7 +940,7 @@ handle_interrupt (pixma_t * s, int timeout)
|
|||
* document type in buf[6] 01=Document; 02=Photo; 03=Auto Scan
|
||||
* ADF status in buf[8] 01 = ADF empty; 02 = ADF filled
|
||||
* ADF orientation in buf[16] 01=Portrait; 02=Landscape */
|
||||
if (s->cfg->pid == TR4500_PID)
|
||||
if (s->cfg->pid == TR4500_PID || s->cfg->pid == MX340_PID)
|
||||
{
|
||||
s->events |= (buf[6] & 0x0f) << 12;
|
||||
s->events |= (buf[8] & 0x0f) << 20;
|
||||
|
|
Ładowanie…
Reference in New Issue