File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 22#![ feature( uefi_std) ]
33extern crate core;
44
5+ /// The delay to wait for when an error occurs in Sprout.
6+ const DELAY_ON_ERROR : Duration = Duration :: from_secs ( 10 ) ;
7+
58use crate :: config:: RootConfiguration ;
69use crate :: context:: { RootContext , SproutContext } ;
710use crate :: entries:: BootableEntry ;
@@ -318,8 +321,8 @@ fn main() -> Result<()> {
318321 for ( index, stack) in error. chain ( ) . enumerate ( ) {
319322 error ! ( "[{}]: {}" , index, stack) ;
320323 }
321- // Sleep for 10 seconds to allow the user to read the error.
322- uefi:: boot:: stall ( Duration :: from_secs ( 10 ) ) ;
324+ // Sleep to allow the user to read the error.
325+ uefi:: boot:: stall ( DELAY_ON_ERROR ) ;
323326 }
324327
325328 // Sprout doesn't necessarily guarantee anything was booted.
You can’t perform that action at this time.
0 commit comments