aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Host')
-rw-r--r--Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
index 761b379dc..19c77c378 100644
--- a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
+++ b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c
@@ -137,9 +137,6 @@ int main(void)
do
{
- if (USB_HostState != HOST_STATE_Configured)
- break;
-
if (MS_Host_TestUnitReady(&FlashDisk_MS_Interface, 0, &DeviceReady))
{
printf("Error waiting for device to be ready.\r\n");
@@ -148,7 +145,7 @@ int main(void)
break;
}
}
- while (DeviceReady == false);
+ while (!(DeviceReady));
puts_P(PSTR("Retrieving Capacity... "));