projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed inability to enumerate any devices while in host mode (broken in a previous...
[pub/USBasp.git]
/
Bootloaders
/
CDC
/
BootloaderCDC.c
diff --git
a/Bootloaders/CDC/BootloaderCDC.c
b/Bootloaders/CDC/BootloaderCDC.c
index
708ba35
..
f36c4fc
100644
(file)
--- a/
Bootloaders/CDC/BootloaderCDC.c
+++ b/
Bootloaders/CDC/BootloaderCDC.c
@@
-350,7
+350,7
@@
static void WriteNextResponseByte(const uint8_t Response)
/* Select the IN endpoint so that the next data byte can be written */
\r
Endpoint_SelectEndpoint(CDC_TX_EPNUM);
\r
\r
/* Select the IN endpoint so that the next data byte can be written */
\r
Endpoint_SelectEndpoint(CDC_TX_EPNUM);
\r
\r
- /* If
OUT endpoint empty, clear it and wait for the next packet from
the host */
\r
+ /* If
IN endpoint full, clear it and wait util ready for the next packet to
the host */
\r
if (!(Endpoint_IsReadWriteAllowed()))
\r
{
\r
Endpoint_ClearIN();
\r
if (!(Endpoint_IsReadWriteAllowed()))
\r
{
\r
Endpoint_ClearIN();
\r
@@
-424,9
+424,9
@@
TASK(CDC_Task)
}
\r
else if (Command == 's')
\r
{
\r
}
\r
else if (Command == 's')
\r
{
\r
- WriteNextResponseByte(SIGNATURE_0);
\r
- WriteNextResponseByte(SIGNATURE_1);
\r
WriteNextResponseByte(SIGNATURE_2);
\r
WriteNextResponseByte(SIGNATURE_2);
\r
+ WriteNextResponseByte(SIGNATURE_1);
\r
+ WriteNextResponseByte(SIGNATURE_0);
\r
}
\r
else if (Command == 'b')
\r
{
\r
}
\r
else if (Command == 'b')
\r
{
\r