This commit is contained in:
13038267101 2023-06-26 18:01:15 +08:00
commit a93e612d3b
1 changed files with 12 additions and 0 deletions

View File

@ -4186,6 +4186,18 @@ int hg_scanner::device_io_control(unsigned long code, void* data, unsigned* len)
strcpy((char*)data, str.c_str()); strcpy((char*)data, str.c_str());
return SCANNER_ERR_OK; return SCANNER_ERR_OK;
} }
else if (code == IO_CTRL_CODE_GET_SCAN_WITH_HOLE)
{
*(SANE_Bool*)data = image_prc_param_.bits.rid_hole || isremove_left_hole || isremove_low_hole || isremove_right_hole || isremove_top_hole ? SANE_TRUE : SANE_FALSE;
return SCANNER_ERR_OK;
}
else if (code == IO_CTRL_CODE_SET_SCAN_WITH_HOLE)
{
image_prc_param_.bits.rid_hole = *(SANE_Bool*)data == SANE_TRUE;
return SCANNER_ERR_OK;
}
return SCANNER_ERR_DEVICE_NOT_SUPPORT; return SCANNER_ERR_DEVICE_NOT_SUPPORT;
} }
int hg_scanner::get_roller_life(void) int hg_scanner::get_roller_life(void)