双张状态从获取图片信息的接口sane_get_parameters返回: SCANNER_ERR_DEVICE_DOUBLE_FEEDING

This commit is contained in:
gb 2023-10-13 10:42:43 +08:00
parent cc0d64f17d
commit dad78e3b20
1 changed files with 5 additions and 0 deletions

View File

@ -4010,6 +4010,11 @@ int hg_scanner::get_image_info(SANE_Parameters* ii, int len)
iiex->flag.dpi = resolution_;
iiex->bytes = imh.bytes;
}
else if (imh.statu)
{
if (imh.statu == IMG_STATUS_DOUBLE)
ret = SCANNER_ERR_DEVICE_DOUBLE_FEEDING;
}
}
}