X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/df5500e81cc40633eb5edee59410030f0aa77c2d..99abd1a8b7c096baf5ddaff84a8f8fdfb097dfc2:/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c?ds=inline 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... "));