From 0eda7d2ae2099ab33de3a033a1c7ee64e55850e3 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Wed, 16 Aug 2023 14:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=9D=E5=A7=8B=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sane/scanner.cpp | 3 +++ twain/twain.vcxproj | 2 +- twain/twain/huagaods.cpp | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sane/scanner.cpp b/sane/scanner.cpp index f2484d8..f432c37 100644 --- a/sane/scanner.cpp +++ b/sane/scanner.cpp @@ -1054,6 +1054,8 @@ int scanner::init_options_id(void) INIT_FIXED_IDS(DEVICE_MAC_ADDR); INIT_FIXED_IDS(CUSTOM_GAMMA); INIT_FIXED_IDS(MOTOR_VER); + INIT_FIXED_IDS(INITIAL_BOOT_TIME); + while ((desc = hg_sane_middleware::instance()->get_option_descriptor(handle_, (const void*)op_id))) { @@ -2819,6 +2821,7 @@ COM_API_IMPLEMENT(scanner, bool, get_option_info(int sn, value_type* type, value SIMPLE_INT_INFO(SANE_OPT_ID_VID, true); SIMPLE_INT_INFO(SANE_OPT_ID_PID, true); SIMPLE_INT_INFO(SANE_OPT_ID_ROLLER_LIFE, true); + SIMPLE_STR_INFO(SANE_OPT_ID_INITIAL_BOOT_TIME, true); sn = transfer_id(sn); if (sn == -1) diff --git a/twain/twain.vcxproj b/twain/twain.vcxproj index f3ae8af..84177ec 100644 --- a/twain/twain.vcxproj +++ b/twain/twain.vcxproj @@ -82,7 +82,7 @@ $(LibraryPath) - huagaotwain200.ds + huagaotwain100.ds true $(SolutionDir)..\..\sdk\include\;$(SolutionDir)..\..\sdk\include\twain\;$(IncludePath) $(SolutionDir)..\..\release\win\$(PlatformTarget)\OEM\huagao\ diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index 2609328..636cdd8 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -3529,6 +3529,7 @@ void huagao_ds::init_support_caps_ex(void) GET_ONLY_CAP(CO_ADDR, std::string, Str255); GET_ONLY_CAP(CO_GPS, std::string, Str255); GET_ONLY_CAP(MOTOR_VER, std::string, Str255); + GET_ONLY_CAP(INITIAL_BOOT_TIME, std::string, Str255); GET_ONLY_CAP(DEV_NAME, std::string, Str255); GET_ONLY_CAP(DEV_FAMILY, std::string, Str255); GET_ONLY_CAP(VID, int, Int32);