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;
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue