diff options
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c | 4 |
1 files changed, 2 insertions, 2 deletions
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);
|