修复敦南 安路cis原图扫描不能保存问题

This commit is contained in:
masayume 2022-04-20 09:32:25 +08:00
parent 6154008bab
commit 5bd17e89b2
3 changed files with 5 additions and 6 deletions

Binary file not shown.

View File

@ -358,7 +358,7 @@ void CHuaGoCorrectDlg::Scan()
config.g400params.dpi = m_iDpiIndex == 0 ? 1 : (m_iDpiIndex == 1 ? 2 : 3);//only support 200DPI ;// 1;//only support 200DPI
config.g400params.pageSize = 0;
config.g400params.isCorrect = !((CButton*)GetDlgItem(IDC_CKBORGINIMG))->GetCheck();
config.g400params.lutmode = ((CButton*)GetDlgItem(IDC_CKBLUTMODE))->GetCheck();
//config.g400params.lutmode = ((CButton*)GetDlgItem(IDC_CKBLUTMODE))->GetCheck();
config.g400params.isColor = m_iColorIndex == 1 ? 1 : 0;
config.g400params.doubleFeeded = TRUE;
config.g400params.enableStable = FALSE;

View File

@ -589,8 +589,8 @@ void gscan3399::get_imgdata()
{
if (is_bulktransferring())
{
std::this_thread::sleep_for(std::chrono::milliseconds(1));
return;
std::this_thread::sleep_for(std::chrono::milliseconds(10));
continue;
}
imgremains++;
auto& buffi = im_data;
@ -607,7 +607,7 @@ void gscan3399::get_imgdata()
bool gscan3399::is_runing()
{
return scanner_read_reg(m_usb, SR_STATUS) & 0x01;
return scanner_read_reg(m_usb, SR_STATUS) & 0x03;
}
bool gscan3399::bulk_starttransfer()
@ -686,7 +686,6 @@ void gscan3399::usb_run()
switch (info.From)
{
case IMG:
if (is_runing())
get_imgdata();
break;
case AutoCorrect: