projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Converted Host mode demos to schedulerless. Fixed host mode broken due to earlier...
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
MassStorageHost
/
Lib
/
MassStoreCommands.c
diff --git
a/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c
b/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c
index
f47e9f5
..
95aafca
100644
(file)
--- a/
Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c
+++ b/
Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c
@@
-119,10
+119,10
@@
static uint8_t MassStore_WaitForDataReceived(void)
while (!(Pipe_IsINReceived()))
\r
{
\r
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
while (!(Pipe_IsINReceived()))
\r
{
\r
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
- if (
FrameElapsed
)
\r
+ if (
USB_INT_HasOccurred(USB_INT_HSOFI)
)
\r
{
\r
/* Clear the flag and decrement the timeout period counter */
\r
{
\r
/* Clear the flag and decrement the timeout period counter */
\r
-
FrameElapsed = false
;
\r
+
USB_INT_Clear(USB_INT_HSOFI)
;
\r
TimeoutMSRem--;
\r
\r
/* Check to see if the timeout period for the command has elapsed */
\r
TimeoutMSRem--;
\r
\r
/* Check to see if the timeout period for the command has elapsed */
\r