From 99abd1a8b7c096baf5ddaff84a8f8fdfb097dfc2 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 13 Aug 2009 08:14:16 +0000 Subject: Added explicit attribute masks to the device mode demos' descriptors. --- Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Demos/Host/ClassDriver/MassStorageHost') 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... ")); -- cgit v1.2.3