From 4f78f416b5755eabc3fc4fe687bf246f657a39ec Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Thu, 7 Dec 2023 09:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9USB=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=98=9F=E5=88=97ID=E4=B8=BAusb=5Fimg=5Findex=5F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 3b5898c..4b1f8ec 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -3688,6 +3688,7 @@ int hg_scanner::save_usb_data(std::shared_ptr data) } if (!data->swap()) { + VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "USB packet(%04d) swap failed.\n", usb_img_index_); ret = SCANNER_ERR_OPEN_FILE_FAILED; } else @@ -3723,7 +3724,7 @@ int hg_scanner::save_usb_data(std::shared_ptr data) { VLOG_MINI_1(LOG_LEVEL_WARNING, "Warning: memory usage(%.2fMB) maybe leading exception!\r\n", Memoryusae); } - imgs_.Put(data, data->size(), hg_scanner_mgr::unique_id()); + imgs_.Put(data, data->size(), usb_img_index_); if (wait_img_.is_waiting()) wait_img_.notify(); }