start remove while
This commit is contained in:
parent
9eee1374c4
commit
ac8ff76687
|
@ -1323,7 +1323,7 @@ void hg_scanner_239::thread_handle_usb_read(void)
|
||||||
|
|
||||||
int hg_scanner_239::start(void)
|
int hg_scanner_239::start(void)
|
||||||
{
|
{
|
||||||
StopWatch sw;
|
/*StopWatch sw;
|
||||||
while (is_read_int)
|
while (is_read_int)
|
||||||
{
|
{
|
||||||
if (sw.elapsed_s() > 10)
|
if (sw.elapsed_s() > 10)
|
||||||
|
@ -1332,7 +1332,7 @@ int hg_scanner_239::start(void)
|
||||||
}
|
}
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||||
VLOG_MINI_1(LOG_LEVEL_WARNING, "device status is(%s)\n", STATU_DESC_SCANNER_ERR_DEVICE_DEVS_BOOTING);
|
VLOG_MINI_1(LOG_LEVEL_WARNING, "device status is(%s)\n", STATU_DESC_SCANNER_ERR_DEVICE_DEVS_BOOTING);
|
||||||
}
|
}*/
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
int ret = try_third_app_handle_start(handled),
|
int ret = try_third_app_handle_start(handled),
|
||||||
val = 0;
|
val = 0;
|
||||||
|
@ -1983,4 +1983,4 @@ int hg_scanner_239::set_dev_islock_file(int islockfile)
|
||||||
//VLOG_MINI_3(LOG_LEVEL_DEBUG_INFO, "log path:%s ret:%s buffersize: %d\n", logpath.c_str(), hg_scanner_err_name(ret), buffersize);
|
//VLOG_MINI_3(LOG_LEVEL_DEBUG_INFO, "log path:%s ret:%s buffersize: %d\n", logpath.c_str(), hg_scanner_err_name(ret), buffersize);
|
||||||
//return ret;
|
//return ret;
|
||||||
return SCANNER_ERR_OK;
|
return SCANNER_ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -299,17 +299,17 @@ int hg_scanner_300::start(void)
|
||||||
// VLOG_MINI_1(LOG_LEVEL_WARNING, "device status is(%s)\n", STATU_DESC_SCANNER_ERR_DEVICE_DEVS_BOOTING);
|
// VLOG_MINI_1(LOG_LEVEL_WARNING, "device status is(%s)\n", STATU_DESC_SCANNER_ERR_DEVICE_DEVS_BOOTING);
|
||||||
// return SCANNER_ERR_DEVICE_DEVS_BOOTING;
|
// return SCANNER_ERR_DEVICE_DEVS_BOOTING;
|
||||||
//}
|
//}
|
||||||
StopWatch sw;
|
//StopWatch sw;
|
||||||
while (is_read_int)
|
// while (is_read_int)
|
||||||
{
|
//{
|
||||||
if (sw.elapsed_s() > 10)
|
// if (sw.elapsed_s() > 10)
|
||||||
{
|
//{
|
||||||
break;
|
// break;
|
||||||
}
|
//}
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
//std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||||
VLOG_MINI_1(LOG_LEVEL_WARNING, "device status is(%s)\n", STATU_DESC_SCANNER_ERR_DEVICE_DEVS_BOOTING);
|
//VLOG_MINI_1(LOG_LEVEL_WARNING, "device status is(%s)\n", STATU_DESC_SCANNER_ERR_DEVICE_DEVS_BOOTING);
|
||||||
}
|
//}
|
||||||
discard_all_images();
|
//discard_all_images();
|
||||||
final_imgs_.clear();
|
final_imgs_.clear();
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
int ret = try_third_app_handle_start(handled),
|
int ret = try_third_app_handle_start(handled),
|
||||||
|
@ -1288,4 +1288,4 @@ int hg_scanner_300::get_roller_num(int& val)
|
||||||
}
|
}
|
||||||
val = usbcb.u32_Data;
|
val = usbcb.u32_Data;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue