aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-06-23 08:45:46 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-06-23 08:45:46 +0000
commit866d3a7e0997bcc39931e733a50cb2511c8fb989 (patch)
treefca0df94ed5d2abf2ef6db0afa13711ca36c9569 /Demos/Device
parent3b47e0761584bbd3f98aa83c1c6de21add8452d8 (diff)
Fixed MassStorage demo not clearing the reset flag when a Mass Storage Reset is issued while not processing a command.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@629 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device')
-rw-r--r--Demos/Device/LowLevel/MassStorage/MassStorage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demos/Device/LowLevel/MassStorage/MassStorage.c b/Demos/Device/LowLevel/MassStorage/MassStorage.c
index 3f992c22..f0984a2b 100644
--- a/Demos/Device/LowLevel/MassStorage/MassStorage.c
+++ b/Demos/Device/LowLevel/MassStorage/MassStorage.c
@@ -218,9 +218,6 @@ void MassStorage_Task(void)
Endpoint_ClearStall();
Endpoint_SelectEndpoint(MASS_STORAGE_IN_EPNUM);
Endpoint_ClearStall();
-
- /* Clear the abort transfer flag */
- IsMassStoreReset = false;
}
/* Indicate ready */
@@ -232,6 +229,9 @@ void MassStorage_Task(void)
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
}
+
+ /* Clear the abort transfer flag */
+ IsMassStoreReset = false;
}
}