projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix broken Set Feature/Clear Feature chapter 9 request (incorrect status stage clearing).
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
LowLevel
/
DevChapter9.c
diff --git
a/LUFA/Drivers/USB/LowLevel/DevChapter9.c
b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
index
f02bb56
..
6ecadb0
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/DevChapter9.c
+++ b/
LUFA/Drivers/USB/LowLevel/DevChapter9.c
@@
-118,8
+118,6
@@
static void USB_Device_SetAddress(void)
{
\r
Endpoint_ClearSETUP();
\r
\r
{
\r
Endpoint_ClearSETUP();
\r
\r
- while (!(Endpoint_IsINReady()));
\r
-
\r
Endpoint_ClearIN();
\r
\r
while (!(Endpoint_IsINReady()));
\r
Endpoint_ClearIN();
\r
\r
while (!(Endpoint_IsINReady()));
\r
@@
-299,7
+297,7
@@
static void USB_Device_ClearSetFeature(void)
}
\r
else
\r
{
\r
}
\r
else
\r
{
\r
- Endpoint_StallTransaction();
\r
+ Endpoint_StallTransaction();
\r
}
\r
}
\r
}
\r
}
\r
}
\r
}
\r
@@
-313,9
+311,6
@@
static void USB_Device_ClearSetFeature(void)
Endpoint_ClearSETUP();
\r
\r
Endpoint_ClearIN();
\r
Endpoint_ClearSETUP();
\r
\r
Endpoint_ClearIN();
\r
-
\r
- while (!(Endpoint_IsOUTReceived()));
\r
- Endpoint_ClearOUT();
\r
}
\r
\r
#endif
\r
}
\r
\r
#endif
\r