This commit is contained in:
parent
177a9e9b4b
commit
2ff76bee9c
|
@ -114,6 +114,18 @@ public:
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
else if(wcscmp(set_test_name_.c_str(), HGPDTTOOLDB_NAME_ULTRASONIC_MODULE) == 0)
|
||||
{
|
||||
if (strcmp((char*)data, STATU_DESC_SCANNER_ERR_DEVICE_DOUBLE_FEEDING) != 0)
|
||||
{
|
||||
type = false;
|
||||
wchar_t buf[128] = L"δ¼ì²âµ½Ë«ÕÅ,ÔÒò--->";
|
||||
wcscat(buf, wstr.c_str());
|
||||
wstr = buf;
|
||||
}
|
||||
else
|
||||
type = true;
|
||||
}
|
||||
h->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)wstr.c_str(), type);
|
||||
}
|
||||
break;
|
||||
|
@ -619,7 +631,13 @@ public:
|
|||
power = (SANE_Power)i;
|
||||
}
|
||||
}
|
||||
return helper_->io_control(IO_CTRL_CODE_SET_POWER_LEVEL, &power, &len);
|
||||
int ret = helper_->io_control(IO_CTRL_CODE_SET_POWER_LEVEL, &power, &len);
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_POWER_LEVEL, &power, &len);
|
||||
return ret;
|
||||
return SCANNER_ERR_OK;
|
||||
}
|
||||
/* Íáбµ²Î»¼ì²â */
|
||||
|
|
Loading…
Reference in New Issue