mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
Keep running the main processing loop while waiting for input.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <console.h>
|
||||
#include <latch.h>
|
||||
#include <gpxe/process.h>
|
||||
#include <gpxe/keys.h>
|
||||
|
||||
/** @file
|
||||
@@ -38,6 +39,7 @@ static int getchar_timeout ( unsigned long timeout ) {
|
||||
unsigned long expiry = ( currticks() + timeout );
|
||||
|
||||
while ( currticks() < expiry ) {
|
||||
step();
|
||||
if ( iskey() )
|
||||
return getchar();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user