调整start流程
This commit is contained in:
parent
a2dd7745b9
commit
ac7db74432
|
@ -1684,18 +1684,16 @@ void hg_scanner_302::thread_handle_usb_read(void)
|
|||
|
||||
int hg_scanner_302::start(void)
|
||||
{
|
||||
split3399_ = 0 ;
|
||||
|
||||
bool handled = false;
|
||||
int ret = try_third_app_handle_start(handled),
|
||||
val = 0;
|
||||
|
||||
user_cancel_ = false;
|
||||
|
||||
// for third-sane-app invoking, added on 2022-05-19
|
||||
if (handled)
|
||||
return ret;
|
||||
|
||||
user_cancel_ = false;
|
||||
split3399_ = 0;
|
||||
cb_mem_ = true;
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "scanner status: 0x%x\n", get_status());
|
||||
notify_ui_working_status(STATU_DESC_PREPARE_START);
|
||||
|
|
|
@ -309,12 +309,11 @@ int hg_scanner_400::start(void)
|
|||
int ret = try_third_app_handle_start(handled),
|
||||
count = -1;
|
||||
|
||||
user_cancel_ = false;
|
||||
|
||||
// for third-sane-app invoking, added on 2022-05-19
|
||||
if (handled)
|
||||
return ret;
|
||||
|
||||
user_cancel_ = false;
|
||||
ret = writedown_device_configuration(true);
|
||||
if (ret == SCANNER_ERR_OK)
|
||||
writedown_image_configuration();
|
||||
|
|
|
@ -1688,17 +1688,16 @@ void hg_scanner_402::thread_handle_usb_read(void)
|
|||
|
||||
int hg_scanner_402::start(void)
|
||||
{
|
||||
split3399_ = 0 ;
|
||||
|
||||
bool handled = false;
|
||||
int ret = try_third_app_handle_start(handled),
|
||||
val = 0;
|
||||
|
||||
user_cancel_ = false;
|
||||
|
||||
// for third-sane-app invoking, added on 2022-05-19
|
||||
if (handled)
|
||||
return ret;
|
||||
|
||||
split3399_ = 0;
|
||||
user_cancel_ = false;
|
||||
cb_mem_ = true;
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "scanner status: 0x%x\n", get_status());
|
||||
|
|
|
@ -1598,17 +1598,16 @@ void hg_scanner_439::thread_handle_usb_read(void)
|
|||
|
||||
int hg_scanner_439::start(void)
|
||||
{
|
||||
split3399_ = 0;
|
||||
bool handled = false;
|
||||
int ret = try_third_app_handle_start(handled),
|
||||
val = 0;
|
||||
|
||||
user_cancel_ = false;
|
||||
|
||||
// for third-sane-app invoking, added on 2022-05-19
|
||||
if (handled)
|
||||
return ret;
|
||||
|
||||
split3399_ = 0;
|
||||
user_cancel_ = false;
|
||||
cb_mem_ = true;
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "scanner status: 0x%x\n", get_status());
|
||||
|
|
Loading…
Reference in New Issue