diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-01-04 13:34:02 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-01-04 13:34:02 +0000 |
| commit | e81a3e40c630d10e14c564158ee137fbf415b9f1 (patch) | |
| tree | b8cef2eb41161e5beb7523f30b54ac03dfd7e9b4 /Projects/Incomplete/StandaloneProgrammer | |
| parent | 301ad14b392b4b482cd98bd591070728596c9d43 (diff) | |
Fix MassStorageKeyboard demo USE_INTERNAL_SERIAL check being performed before the required library headers were included, causing a compilation error.
Added notes to the class driver functions indicating which functions require what Device/Host state machine states to function.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1036 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/Incomplete/StandaloneProgrammer')
| -rw-r--r-- | Projects/Incomplete/StandaloneProgrammer/DiskHost.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Projects/Incomplete/StandaloneProgrammer/DiskHost.c b/Projects/Incomplete/StandaloneProgrammer/DiskHost.c index ef69df2c..e50fc30a 100644 --- a/Projects/Incomplete/StandaloneProgrammer/DiskHost.c +++ b/Projects/Incomplete/StandaloneProgrammer/DiskHost.c @@ -79,8 +79,6 @@ void DiskHost_USBTask(void) return;
}
- USB_HostState = HOST_STATE_Configured;
-
uint8_t MaxLUNIndex;
if (MS_Host_GetMaxLUN(&DiskHost_MS_Interface, &MaxLUNIndex))
{
@@ -96,6 +94,10 @@ void DiskHost_USBTask(void) return;
}
+ USB_HostState = HOST_STATE_Configured;
+
+ /* Note: For the RequestSense call to work, the host state machine must be in the
+ * Configured state, or the call will be aborted */
SCSI_Request_Sense_Response_t SenseData;
if (MS_Host_RequestSense(&DiskHost_MS_Interface, 0, &SenseData) != 0)
{
|
