X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/f547eb36080dacf275cd94fc3ddfb4c618c587fa..ee744abb7efd5fef49782991d58895e10696809a:/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c diff --git a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c index 19c77c378..0f9134fea 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c +++ b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c @@ -132,8 +132,8 @@ int main(void) printf("Vendor \"%.8s\", Product \"%.16s\"\r\n", InquiryData.VendorID, InquiryData.ProductID); + printf("Waiting until ready...\r\n"); bool DeviceReady; - printf("Waiting until ready...\r\n")); do { @@ -150,7 +150,7 @@ int main(void) puts_P(PSTR("Retrieving Capacity... ")); SCSI_Capacity_t DiskCapacity; - if (MS_Host_ReadDeviceCapacity(0, &DiskCapacity)) + if (MS_Host_ReadDeviceCapacity(&FlashDisk_MS_Interface, 0, &DiskCapacity)) { printf("Error retrieving device capacity.\r\n"); LEDs_SetAllLEDs(LEDMASK_USB_ERROR);