clamp film type to allowed range (bug #311685)

merge-requests/1/head
m. allan noah 2009-05-26 08:53:02 -04:00
rodzic dcae93ab39
commit 7dab2ed86b
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
2009-05-26 m. allan noah <kitno455 at gmail dot com>
* backend/canon.c: clamp film type to allowed range (bug #311685)
2009-05-25 m. allan noah <kitno455 at gmail dot com>
* backend/fujitsu.[ch]: backend v94
- add side option to show which duplex image is being transferred

Wyświetl plik

@ -253,6 +253,8 @@ get_tpu_stat (int fd, CANON_Device * dev)
dev->tpu.Transparency = tbuf[4 + 4 + 5] * 256 + tbuf[5 + 4 + 5];
dev->tpu.PosNeg = tbuf[6 + 4 + 5] & 0x01;
dev->tpu.FilmType = tbuf[7 + 4 + 5];
if(dev->tpu.FilmType > 4)
dev->tpu.FilmType = 0;
DBG (11, "TPU Status: %d\n", dev->tpu.Status);
DBG (11, "TPU ControlMode: %d\n", dev->tpu.ControlMode);