Skip to content

Commit

Permalink
Increase timeout for reboot to bootloader
Browse files Browse the repository at this point in the history
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 Nitrokey/nitrokey-3-firmware#519.

This patch increases the timeout to 30 seconds.
  • Loading branch information
robin-nitrokey committed Aug 1, 2024
1 parent c241491 commit 37d5437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 37d5437

Please sign in to comment.