On WorkCentre 3515 dev->compressionTypes is 0x51 and (dev->compressionTypes & (1 << 6)) is true. On WorkCentre 3510 dev->compressionTypes is 0x41, but this device don't support jpeg - this is error!
-- With best regards
diff -Nurp sane-backends-1.0.27-old/backend/xerox_mfp.c sane-backends-1.0.27/backend/xerox_mfp.c --- sane-backends-1.0.27-old/backend/xerox_mfp.c 2017-03-19 02:19:04.000000000 +0300 +++ sane-backends-1.0.27/backend/xerox_mfp.c 2017-08-09 01:31:56.117414319 +0300 @@ -206,7 +206,7 @@ static int isSupportedDevice(struct devi { #ifdef HAVE_LIBJPEG /* Checking device which supports JPEG Lossy compression for color scanning*/ - if (dev->compressionTypes & (1 << 6)) + if ((dev->compressionTypes & 0x50) == 0x50) return 1; else return 0;
-- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org