Merge branch 'dev' of http://192.168.10.5:8099/sane/code_device into dev
This commit is contained in:
commit
a93e612d3b
|
@ -4186,6 +4186,18 @@ int hg_scanner::device_io_control(unsigned long code, void* data, unsigned* len)
|
|||
strcpy((char*)data, str.c_str());
|
||||
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;
|
||||
}
|
||||
int hg_scanner::get_roller_life(void)
|
||||
|
|
Loading…
Reference in New Issue