summaryrefslogtreecommitdiff
path: root/backend/epson2.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
commitb2802d98d4486d6afc585062f4ca02fddf829dc5 (patch)
treeb74907ddd07161872edfa3d8be1a4ece63a6ec62 /backend/epson2.c
parent29eaee2cf7c71df75a2d31f82738cc3a060f7a88 (diff)
Release 1.0.25+git20150102-1
Diffstat (limited to 'backend/epson2.c')
-rw-r--r--backend/epson2.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/backend/epson2.c b/backend/epson2.c
index 9f39c68..e023010 100644
--- a/backend/epson2.c
+++ b/backend/epson2.c
@@ -29,6 +29,7 @@
* 20 usb cmd counters
* 18 sane_read
* 17 setvalue, getvalue, control_option
+ * 16 gamma table
* 15 e2_send, e2_recv calls
* 13 e2_cmd_info_block
* 12 epson_cmd_simple
@@ -409,8 +410,8 @@ e2_network_discovery(void)
FD_SET(fd, &rfds);
sanei_udp_set_nonblock(fd, SANE_TRUE);
- if (select(fd + 1, &rfds, NULL, NULL, &to) > 0) {
- while ((len = sanei_udp_recvfrom(fd, buf, 76, &ip)) == 76) {
+ while (select(fd + 1, &rfds, NULL, NULL, &to) > 0) {
+ if ((len = sanei_udp_recvfrom(fd, buf, 76, &ip)) == 76) {
DBG(5, " response from %s\n", ip);
/* minimal check, protocol unknown */
@@ -1752,8 +1753,9 @@ change_source(Epson_Scanner *s, SANE_Int optindex, char *value)
s->val[OPT_ADF_MODE].w = 0;
}
- DBG(1, "adf activated (%d %d)\n", s->hw->use_extension,
- s->hw->duplex);
+ DBG(1, "adf activated (ext: %d, duplex: %d)\n",
+ s->hw->use_extension,
+ s->hw->duplex);
} else if (strcmp(TPU_STR, value) == 0 || strcmp(TPU_STR2, value) == 0) {
if (strcmp(TPU_STR, value) == 0) {