From d281e7e230f83d8ec2503e73323ab4afae9e8cd5 Mon Sep 17 00:00:00 2001 From: Ondrej Zary Date: Thu, 6 Aug 2020 21:19:18 +0200 Subject: [PATCH] rts8891: bugfix --- backend/rts8891.c | 2 +- backend/rts8891_low.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/rts8891.c b/backend/rts8891.c index 99e8be279..a4d8cb34c 100644 --- a/backend/rts8891.c +++ b/backend/rts8891.c @@ -2986,7 +2986,7 @@ set_lamp_brightness (struct Rts8891_Device *dev, int level) dev->regs[0x10] = 0x20; dev->regs[0x11] = 0x3b; } - if (dev->sensor != SENSOR_TYPE_4400) + else if (dev->sensor != SENSOR_TYPE_4400) { dev->regs[0x10] = 0x28; dev->regs[0x11] = 0x3f; diff --git a/backend/rts8891_low.c b/backend/rts8891_low.c index 2f150ab80..0eeab8755 100644 --- a/backend/rts8891_low.c +++ b/backend/rts8891_low.c @@ -456,7 +456,7 @@ rts8891_move (struct Rts8891_Device *device, SANE_Byte * regs, regs10 = 0x20; regs11 = 0x3b; } - if (device->sensor != SENSOR_TYPE_4400 + else if (device->sensor != SENSOR_TYPE_4400 && device->sensor != SENSOR_TYPE_4400_BARE) { regs10 = 0x20;