diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-27 13:12:44 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-27 13:12:44 +0000 |
commit | 922e60192dc089654a82be0d789fb7a8ecc47039 (patch) | |
tree | 71fc15df3d3cc959dd7f16a69da42677d9897330 /Demos/Host/ClassDriver/MassStorageHost | |
parent | 023838fe4aad5b5f0da00b767afd1400d4e40b4c (diff) | |
download | lufa-922e60192dc089654a82be0d789fb7a8ecc47039.tar.gz lufa-922e60192dc089654a82be0d789fb7a8ecc47039.tar.bz2 lufa-922e60192dc089654a82be0d789fb7a8ecc47039.zip |
Condensed SCSI command functions in the LowLevel Mass Storage Host demo, to save on FLASH space.
Fixed issue in AVRISP project where the target RESET line was being toggled before it was tristated, causing problems synchronising to some targets (thanks to Mike Alex).
Diffstat (limited to 'Demos/Host/ClassDriver/MassStorageHost')
-rw-r--r-- | Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c index 01553354d..c9120d596 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c +++ b/Demos/Host/ClassDriver/MassStorageHost/MassStorageHost.c @@ -84,7 +84,7 @@ int main(void) if (MS_Host_ConfigurePipes(&FlashDisk_MS_Interface,
ConfigDescriptorSize, ConfigDescriptorData) != MS_ENUMERROR_NoError)
{
- printf("Attached Device Not a Valid Mouse.\r\n");
+ printf("Attached Device Not a Valid Mass Storage Device.\r\n");
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
@@ -113,6 +113,8 @@ int main(void) break;
}
+ printf("Total LUNs: %d - Using first LUN in device.\r\n", (MaxLUNIndex + 1));
+
if (MS_Host_ResetMSInterface(&FlashDisk_MS_Interface))
{
printf("Error resetting Mass Storage interface.\r\n");
|