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
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,7 @@ int USBDevice_Init()
|
||||||
{
|
{
|
||||||
time_t start = time(0);
|
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())
|
if(__io_usbstorage.startup() && __io_usbstorage.isInserted())
|
||||||
break;
|
break;
|
||||||
|
@ -104,6 +104,7 @@ void USBDevice_deInit()
|
||||||
{
|
{
|
||||||
sprintf(Name, "%s:/", DeviceName[dev]);
|
sprintf(Name, "%s:/", DeviceName[dev]);
|
||||||
fatUnmount(Name);
|
fatUnmount(Name);
|
||||||
|
ext2Unmount(Name);
|
||||||
ntfsUnmount(Name, true);
|
ntfsUnmount(Name, true);
|
||||||
}
|
}
|
||||||
//Let's not shutdown so it stays awake for the application
|
//Let's not shutdown so it stays awake for the application
|
||||||
|
|
Loading…
Add table
Reference in a new issue