mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/UsbBotPei: Correct wrong media type detection logic in UsbBotPei
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Chao Zhang <chao.zhang@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16661 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
24e11fd8f8
commit
c45bc17996
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -656,10 +656,12 @@ PeiBotDetectMedia (
|
||||||
PeiServices,
|
PeiServices,
|
||||||
PeiBotDev
|
PeiBotDev
|
||||||
);
|
);
|
||||||
//
|
if (EFI_ERROR (Status)) {
|
||||||
// retry the ReadFormatCapacity command
|
//
|
||||||
//
|
// retry the ReadFormatCapacity command
|
||||||
PeiBotDev->DeviceType = USBFLOPPY2;
|
//
|
||||||
|
PeiBotDev->DeviceType = USBFLOPPY2;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue