mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-21 01:31:26 +00:00
Shorten timeout for Librem Key
Currently the Librem Key tests will time out after 40 seconds, which adds to the boot time significantly if the user wants to boot without inserting it. This patch changes that timeout to one second.
This commit is contained in:
parent
fe34aba719
commit
ec3248dbc9
@ -19,3 +19,14 @@
|
||||
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
+
|
||||
+INCLUDE_DIRECTORIES(hidapi)
|
||||
--- libremkey-hotp-verification/device.c 2018-06-20 16:13:36.417804210 -0700
|
||||
+++ libremkey-hotp-verification-b/device.c 2018-06-20 16:14:34.532367723 -0700
|
||||
@@ -34,7 +34,7 @@
|
||||
const unsigned short m_vid = 0x20a0;
|
||||
const unsigned short m_pid = 0x4108;
|
||||
|
||||
-static const int CONNECTION_ATTEMPTS_COUNT = 80;
|
||||
+static const int CONNECTION_ATTEMPTS_COUNT = 2;
|
||||
|
||||
static const int CONNECTION_ATTEMPT_DELAY_MICRO_SECONDS = 1000*1000/2;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user