From 967c9e6799733a4235b6e67c4daae4fd4d438165 Mon Sep 17 00:00:00 2001 From: Alessandro Zummo Date: Sat, 9 Jan 2010 23:58:24 +0100 Subject: [PATCH] epson2: more error debugging --- backend/epson2-commands.c | 3 +++ backend/epson2.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/epson2-commands.c b/backend/epson2-commands.c index c0004fda2..15c42affc 100644 --- a/backend/epson2-commands.c +++ b/backend/epson2-commands.c @@ -570,6 +570,9 @@ esci_request_scanner_status(SANE_Handle handle, unsigned char *buf) if (buf[0] & FSF_STATUS_MAIN_WU) DBG(1, " scanner is warming up\n"); + if (buf[0] & FSF_STATUS_MAIN_CWU) + DBG(1, " warmup can be cancelled\n"); + DBG(1, "adf status : 0x%02x\n", buf[1]); diff --git a/backend/epson2.h b/backend/epson2.h index 6a83f2d39..b44878460 100644 --- a/backend/epson2.h +++ b/backend/epson2.h @@ -135,10 +135,11 @@ #define EXT_IDTY_CAP2_DFD 0x08 /* double feed detection */ #define EXT_IDTY_CAP2_ADFAS 0x10 /* ADF with auto scan support */ - #define FSF_STATUS_MAIN_FER 0x80 /* system error */ #define FSF_STATUS_MAIN_NR 0x40 /* not ready */ #define FSF_STATUS_MAIN_WU 0x02 /* warming up */ +#define FSF_STATUS_MAIN_CWU 0x01 /* warm up can be cancelled (?) */ + #define FSF_STATUS_ADF_IST 0x80 /* installed */ #define FSF_STATUS_ADF_EN 0x40 /* enabled */ #define FSF_STATUS_ADF_ERR 0x20 /* system error */ @@ -146,10 +147,12 @@ #define FSF_STATUS_ADF_PJ 0x04 /* paper jam */ #define FSF_STATUS_ADF_OPN 0x02 /* cover open */ #define FSF_STATUS_ADF_PAG 0x01 /* duplex */ + #define FSF_STATUS_TPU_IST 0x80 /* installed */ #define FSF_STATUS_TPU_EN 0x40 /* enabled */ #define FSF_STATUS_TPU_ERR 0x20 /* system error */ #define FSF_STATUS_TPU_OPN 0x02 /* cover open */ + #define FSF_STATUS_MAIN2_ERR 0x20 /* system error */ #define FSF_STATUS_MAIN2_PE 0x08 /* paper empty */ #define FSF_STATUS_MAIN2_PJ 0x04 /* paper jam */