projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed broken Magstripe project and TeensyHID bootloader.
[pub/USBasp.git]
/
Demos
/
USBtoSerial
/
USBtoSerial.c
diff --git
a/Demos/USBtoSerial/USBtoSerial.c
b/Demos/USBtoSerial/USBtoSerial.c
index
0495826
..
c7c9e4b
100644
(file)
--- a/
Demos/USBtoSerial/USBtoSerial.c
+++ b/
Demos/USBtoSerial/USBtoSerial.c
@@
-164,7
+164,7
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
case REQ_GetLineEncoding:
\r
if (bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
\r
{
\r
case REQ_GetLineEncoding:
\r
if (bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
\r
{
\r
- /* Acknowedge the SETUP packet, ready for data transfer */
\r
+ /* Acknow
l
edge the SETUP packet, ready for data transfer */
\r
Endpoint_ClearSetupReceived();
\r
\r
/* Write the line coding data to the control endpoint */
\r
Endpoint_ClearSetupReceived();
\r
\r
/* Write the line coding data to the control endpoint */
\r
@@
-178,7
+178,7
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
case REQ_SetLineEncoding:
\r
if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
\r
{
\r
case REQ_SetLineEncoding:
\r
if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
\r
{
\r
- /* Acknowedge the SETUP packet, ready for data transfer */
\r
+ /* Acknow
l
edge the SETUP packet, ready for data transfer */
\r
Endpoint_ClearSetupReceived();
\r
\r
/* Read the line coding data in from the host into the global struct */
\r
Endpoint_ClearSetupReceived();
\r
\r
/* Read the line coding data in from the host into the global struct */
\r
@@
-206,10
+206,11
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
// Do something with the given line states in wIndex
\r
#endif
\r
\r
// Do something with the given line states in wIndex
\r
#endif
\r
\r
- /* Acknowedge the SETUP packet, ready for data transfer */
\r
+ /* Acknow
l
edge the SETUP packet, ready for data transfer */
\r
Endpoint_ClearSetupReceived();
\r
\r
Endpoint_ClearSetupReceived();
\r
\r
- /* Send an empty packet to acknowedge the command */
\r
+ /* Acknowledge status stage */
\r
+ while (!(Endpoint_IsSetupINReady()));
\r
Endpoint_ClearSetupIN();
\r
}
\r
\r
Endpoint_ClearSetupIN();
\r
}
\r
\r