We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b3439 commit 94caf12Copy full SHA for 94caf12
1 file changed
src/main.rs
@@ -2,6 +2,9 @@
2
#![feature(uefi_std)]
3
extern crate core;
4
5
+/// The delay to wait for when an error occurs in Sprout.
6
+const DELAY_ON_ERROR: Duration = Duration::from_secs(10);
7
+
8
use crate::config::RootConfiguration;
9
use crate::context::{RootContext, SproutContext};
10
use crate::entries::BootableEntry;
@@ -318,8 +321,8 @@ fn main() -> Result<()> {
318
321
for (index, stack) in error.chain().enumerate() {
319
322
error!("[{}]: {}", index, stack);
320
323
}
- // Sleep for 10 seconds to allow the user to read the error.
- uefi::boot::stall(Duration::from_secs(10));
324
+ // Sleep to allow the user to read the error.
325
+ uefi::boot::stall(DELAY_ON_ERROR);
326
327
328
// Sprout doesn't necessarily guarantee anything was booted.
0 commit comments