From f1706e240d414cd28ca7f0c93e4d59618b26ff7b Mon Sep 17 00:00:00 2001 From: Nicolas Martin Date: Thu, 27 Aug 2009 21:28:01 +0200 Subject: [PATCH] Changes in request_image_block for mf4660 --- backend/pixma_imageclass.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/pixma_imageclass.c b/backend/pixma_imageclass.c index 9c986e559..de5e96150 100644 --- a/backend/pixma_imageclass.c +++ b/backend/pixma_imageclass.c @@ -257,13 +257,14 @@ request_image_block (pixma_t * s, unsigned flag, uint8_t * info, pixma_set_be16 (cmd_read_image, mf->cb.buf); mf->cb.buf[8] = flag; mf->cb.buf[10] = 0x06; - mf->cb.reslen = pixma_cmd_transaction (s, mf->cb.buf, 11, mf->cb.buf, 64); + mf->cb.reslen = pixma_cmd_transaction (s, mf->cb.buf, 11, mf->cb.buf, 512); mf->cb.expected_reslen = 0; - error = pixma_check_result (&mf->cb); +/* error = pixma_check_result (&mf->cb); */ + error = 0; if (error >= 0) { - if (mf->cb.reslen == 8) - { + if (mf->cb.reslen >= 8) + { *info = mf->cb.buf[2]; *size = pixma_get_be16 (mf->cb.buf + 6); /* could it be 32bit? */