From 29cf9ba4d607e072fceb6d355dc60b88e8f918c4 Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Thu, 9 May 2024 10:36:28 +0800 Subject: [PATCH] fix: reset bind timeout time --- imkey-core/ikc-device/src/device_binding.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imkey-core/ikc-device/src/device_binding.rs b/imkey-core/ikc-device/src/device_binding.rs index affd88f8..f6f1e217 100644 --- a/imkey-core/ikc-device/src/device_binding.rs +++ b/imkey-core/ikc-device/src/device_binding.rs @@ -136,7 +136,7 @@ impl DeviceManage { let identity_verify_apdu = ImkApdu::identity_verify(&apdu_data); std::mem::drop(key_manager_obj); //send command to device - let bind_result = send_apdu_timeout(identity_verify_apdu, TIMEOUT_LONG)?; + let bind_result = send_apdu_timeout(identity_verify_apdu, TIMEOUT_LONG * 2)?; ApduCheck::check_response(&bind_result)?; let result_code = &bind_result[..bind_result.len() - 4];