projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB_HostRequest renamed to USB_ControlRequest, entire control request header is now...
[pub/USBasp.git]
/
Bootloaders
/
DFU
/
BootloaderDFU.c
diff --git
a/Bootloaders/DFU/BootloaderDFU.c
b/Bootloaders/DFU/BootloaderDFU.c
index
289b4eb
..
83881f1
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.c
+++ b/
Bootloaders/DFU/BootloaderDFU.c
@@
-151,16
+151,10
@@
EVENT_HANDLER(USB_Disconnect)
*/
\r
EVENT_HANDLER(USB_UnhandledControlPacket)
\r
{
\r
*/
\r
EVENT_HANDLER(USB_UnhandledControlPacket)
\r
{
\r
- /* Discard unused wIndex value */
\r
- Endpoint_Discard_Word();
\r
-
\r
- /* Discard unused wValue value */
\r
- Endpoint_Discard_Word();
\r
-
\r
/* Get the size of the command and data from the wLength value */
\r
/* Get the size of the command and data from the wLength value */
\r
- SentCommand.DataSize =
Endpoint_Read_Word_LE()
;
\r
+ SentCommand.DataSize =
USB_ControlRequest.wLength
;
\r
\r
\r
- switch (bRequest)
\r
+ switch (
USB_ControlRequest.
bRequest)
\r
{
\r
case DFU_DNLOAD:
\r
Endpoint_ClearSETUP();
\r
{
\r
case DFU_DNLOAD:
\r
Endpoint_ClearSETUP();
\r