kopia lustrzana https://gitlab.com/sane-project/backends
Apply patch from Nils Philippsen, turning 3 logical AND into bitwise AND (SANE bug #304363).
rodzic
964eccff2c
commit
ff5387ffa0
|
@ -2,6 +2,8 @@
|
|||
* doc/descriptions/epson.desc: add the Epson Stylus DX-4050
|
||||
(04b8:082f), based on several reports. Add the Epson Stylus
|
||||
DX-5000 (04b8:082b) on the same grounds.
|
||||
* backend/canon.c: apply patch from Nils Philippsen, turning
|
||||
3 logical AND into bitwise AND (SANE bug #304363).
|
||||
|
||||
2007-07-29 Julien Blache <jb@jblache.org>
|
||||
* tools/sane-desc.c: Add a RUN rule to the udev rules to
|
||||
|
|
|
@ -246,12 +246,12 @@ get_tpu_stat (int fd, CANON_Device * dev)
|
|||
TPU_STAT_INACTIVE : TPU_STAT_NONE;
|
||||
if (dev->tpu.Status != TPU_STAT_NONE) /* TPU available */
|
||||
{
|
||||
dev->tpu.Status = (tbuf[2 + 4 + 5] && 0x04) ?
|
||||
dev->tpu.Status = (tbuf[2 + 4 + 5] & 0x04) ?
|
||||
TPU_STAT_INACTIVE : TPU_STAT_ACTIVE;
|
||||
}
|
||||
dev->tpu.ControlMode = tbuf[3 + 4 + 5] && 0x03;
|
||||
dev->tpu.ControlMode = tbuf[3 + 4 + 5] & 0x03;
|
||||
dev->tpu.Transparency = tbuf[4 + 4 + 5] * 256 + tbuf[5 + 4 + 5];
|
||||
dev->tpu.PosNeg = tbuf[6 + 4 + 5] && 0x01;
|
||||
dev->tpu.PosNeg = tbuf[6 + 4 + 5] & 0x01;
|
||||
dev->tpu.FilmType = tbuf[7 + 4 + 5];
|
||||
|
||||
DBG (11, "TPU Status: %d\n", dev->tpu.Status);
|
||||
|
|
Ładowanie…
Reference in New Issue