Added explicit attribute masks to the device mode demos' descriptors.
[pub/USBasp.git] / Demos / Host / ClassDriver / MassStorageHost / MassStorageHost.c
index 761b379..19c77c3 100644 (file)
@@ -137,9 +137,6 @@ int main(void)
 \r
                                do\r
                                {\r
-                                       if (USB_HostState != HOST_STATE_Configured)\r
-                                         break;\r
-\r
                                        if (MS_Host_TestUnitReady(&FlashDisk_MS_Interface, 0, &DeviceReady))\r
                                        {\r
                                                printf("Error waiting for device to be ready.\r\n");\r
@@ -148,7 +145,7 @@ int main(void)
                                                break;\r
                                        }\r
                                }\r
-                               while (DeviceReady == false);\r
+                               while (!(DeviceReady));\r
 \r
                                puts_P(PSTR("Retrieving Capacity... "));\r
 \r