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.
This commit is contained in:
Robin Krahl
2024-08-01 11:29:25 +02:00
parent c24149193f
commit 37d5437257
+1 -1
View File
@@ -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.