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
/
ClassDriver
/
StillImageHost
/
Lib
/
StillImageCommands.c
diff --git
a/Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c
b/Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c
index
f2f666b
..
8f05e48
100644
(file)
--- a/
Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c
+++ b/
Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c
@@
-109,10
+109,10
@@
uint8_t SImage_RecieveBlockHeader(void)
while (!(Pipe_IsReadWriteAllowed()))
\r
{
\r
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
while (!(Pipe_IsReadWriteAllowed()))
\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