mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
Forwarder:
- fixed endless waiting for slow HDD (now really 10 secs timeout) - added missing ext2 unmount Thanks to FIX94 for pointing at those two bugs.
This commit is contained in:
parent
1c150901e4
commit
53f7aab136
@ -45,7 +45,7 @@ int USBDevice_Init()
|
||||
{
|
||||
time_t start = time(0);
|
||||
|
||||
while(start-time(0) < 10) // 10 sec
|
||||
while(time(0)-start < 10) // 10 sec
|
||||
{
|
||||
if(__io_usbstorage.startup() && __io_usbstorage.isInserted())
|
||||
break;
|
||||
@ -104,6 +104,7 @@ void USBDevice_deInit()
|
||||
{
|
||||
sprintf(Name, "%s:/", DeviceName[dev]);
|
||||
fatUnmount(Name);
|
||||
ext2Unmount(Name);
|
||||
ntfsUnmount(Name, true);
|
||||
}
|
||||
//Let's not shutdown so it stays awake for the application
|
||||
|
Loading…
Reference in New Issue
Block a user