io_control 调整

This commit is contained in:
13038267101 2022-07-23 18:20:44 +08:00
parent 794cde1b17
commit 0aa35e86e1
3 changed files with 1 additions and 10 deletions

View File

@ -94,7 +94,6 @@ hg_scanner::hg_scanner(ScannerSerial serial
, setting_count_(0),img_type_(""), online_(false),is_quality_(-1),is_color_fill(false),is_multiout(false),save_multiout(OPTION_VALUE_DLSC_CS_HD_HB)
, final_img_index_(0), custom_area_(false),save_sizecheck(false), bw_threshold_(128), custom_gamma_(false), double_paper_handle_(0)
{
get_app_path();
final_path_ = hg_log::ini_get("paths", "final_img");
if(final_path_.empty())
final_path_ = hg_log::local_data_path() + PATH_SEPARATOR + "imgs";
@ -787,13 +786,6 @@ void hg_scanner::working_done(void*)
test_1_paper_ = false;
}
void hg_scanner::get_app_path()
{
char buf[80];
getcwd(buf, sizeof(buf));
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO,"App_path is:%s \r\n",buf);
printf("current working directory : %s\n", buf);
}
void hg_scanner::reset_custom_area_range(int paper)
{

View File

@ -263,7 +263,6 @@ protected:
int double_paper_handle_;
public:
void get_app_path();
void set_ui_callback(sane_callback cb, bool enable_async_io);
int reset_io(usb_io* io);
int io_disconnected(void);

View File

@ -678,6 +678,6 @@ scanner_err hg_scanner_mgr::hg_scanner_control(scanner_handle h, unsigned long c
}
else if (!h)
return SCANNER_ERR_INVALID_PARAMETER;
else if (code == IO_CTRL_CODE_GET_LOG_FILE)
else
return (scanner_err)SCAN_PTR(h)->device_io_control(code, data, len);
}