306 新增宽度检测和歪斜检测
This commit is contained in:
parent
d2bde90022
commit
7b8af00a5a
|
@ -715,8 +715,10 @@ namespace setting_hardware
|
|||
unsigned int moire : 1;
|
||||
unsigned int reversed1 : 2;
|
||||
unsigned int isCorrect : 1; //设置0 为原图,1为校正后的图
|
||||
unsigned int dc : 7; //设置PWM占空比
|
||||
unsigned int reversed2 : 8;
|
||||
unsigned int dc : 7; //设置PWM占空比
|
||||
unsigned int screw_detect_enable : 1;
|
||||
unsigned int width_detect_enable : 1;
|
||||
unsigned int reversed2 : 6;
|
||||
}params_7010;
|
||||
}HGSCANCONF_7010;
|
||||
}
|
||||
|
|
|
@ -1155,11 +1155,8 @@ int hg_scanner_306::get_scanner_paperon(SANE_Bool& type)
|
|||
type = usbcb.u32_Data == 0 ? false : true;
|
||||
}
|
||||
}
|
||||
//if (usbcb.u32_Data == 0)
|
||||
// ret = SCANNER_ERR_DEVICE_NO_PAPER;
|
||||
//else
|
||||
// ret = SCANNER_ERR_OK;
|
||||
VLOG_MINI_1(LOG_LEVEL_WARNING, "get_scanner_paperon is(%s)\n", !type ? hg_scanner_err_description(SCANNER_ERR_DEVICE_NO_PAPER) : hg_scanner_err_description(SCANNER_ERR_OK));
|
||||
|
||||
VLOG_MINI_1(LOG_LEVEL_WARNING, "get_scanner_paperon is(%s)\n", !type ? hg_scanner_err_description(SCANNER_ERR_DEVICE_NO_PAPER) : hg_scanner_err_description(ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue