From 37d543725752d427988273ddbf27723945067414 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 1 Aug 2024 11:29:25 +0200 Subject: [PATCH] Increase timeout for reboot to bootloader Previously, we had a timeout of 15 seconds for the user presence check when rebooting to bootloader. This can be too short in some situations, see for example https://github.com/Nitrokey/nitrokey-3-firmware/issues/519. This patch increases the timeout to 30 seconds. --- src/admin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin.rs b/src/admin.rs index 87bd9d2..a1992cf 100644 --- a/src/admin.rs +++ b/src/admin.rs @@ -15,7 +15,7 @@ use trussed::{interrupt::InterruptFlag, store::filestore::Filestore, syscall, ty use crate::config::{self, Config, ConfigError}; use crate::migrations::Migrator; -pub const USER_PRESENCE_TIMEOUT_SECS: u32 = 15; +pub const USER_PRESENCE_TIMEOUT_SECS: u32 = 30; // New commands are only available over this vendor command (acting as a namespace for this // application). The actual application command is stored in the first byte of the packet data.