From 4a76bbd162110f6a3944ebc7a6f08259724e4618 Mon Sep 17 00:00:00 2001 From: Asela Fernando Date: Thu, 20 Aug 2020 00:32:49 +0000 Subject: [PATCH] Added support for Canon Pixma MX340 buttons buf[7] and ADF status buf[8] --- backend/pixma/pixma_mp150.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/pixma/pixma_mp150.c b/backend/pixma/pixma_mp150.c index b438c1bf6..edf10ecd9 100644 --- a/backend/pixma/pixma_mp150.c +++ b/backend/pixma/pixma_mp150.c @@ -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;