休眠时间调整
This commit is contained in:
parent
2ff76bee9c
commit
02ab609564
|
@ -77,9 +77,11 @@ public:
|
|||
if (ret == ERROR_INSUFFICIENT_BUFFER)
|
||||
{
|
||||
type = false;
|
||||
|
||||
h->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)wstr.c_str(), type);
|
||||
return -1;
|
||||
}
|
||||
wprintf(L"%s\r\n", wstr.c_str());
|
||||
switch (code)
|
||||
{
|
||||
case SANE_EVENT_SCAN_FINISHED:
|
||||
|
@ -488,7 +490,7 @@ public:
|
|||
|
||||
if (fw_ == 3 || fw_ == 4 && num > 0 && num < 6)
|
||||
{
|
||||
for (size_t i = 1; i < sizeof(G400) / sizeof(G400[0]); i++)//3288设置速度模式为1 2 3 4 5
|
||||
for (size_t i = 0; i < sizeof(G400) / sizeof(G400[0]); i++)//3288设置速度模式为1 2 3 4 5
|
||||
{
|
||||
if (num == i)
|
||||
save_num = G400[i];
|
||||
|
@ -636,9 +638,21 @@ public:
|
|||
{
|
||||
return ret;
|
||||
}
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_POWER_LEVEL, &power, &len);
|
||||
int gettime = 0;
|
||||
unsigned int timelen = sizeof(int*);
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_GET_POWER_LEVEL, &gettime, &timelen);
|
||||
|
||||
if (gettime == 999999 || gettime == -1)
|
||||
gettime = 9999;
|
||||
else
|
||||
gettime /= 60;
|
||||
|
||||
if (sleep_time == gettime)
|
||||
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)L"设置休眠时间成功", true);
|
||||
else
|
||||
helper_->test_callback(set_test_name_.c_str(), ui_helper::TEST_EVENT_RESULT, (void*)L"设置休眠时间失败", false);
|
||||
return ret;
|
||||
return SCANNER_ERR_OK;
|
||||
}
|
||||
/* Íáбµ²Î»¼ì²â */
|
||||
int test_skew_gear(void *data)
|
||||
|
|
Loading…
Reference in New Issue