projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix USBtoSerial device demos -- ensure the UDR1 register contents is read in under...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
USBtoSerial
/
USBtoSerial.c
diff --git
a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
index
0c83cd8
..
8ef07f1
100644
(file)
--- a/
Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
+++ b/
Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
@@
-147,8
+147,10
@@
void EVENT_USB_Device_UnhandledControlPacket(void)
*/
\r
ISR(USART1_RX_vect, ISR_BLOCK)
\r
{
\r
*/
\r
ISR(USART1_RX_vect, ISR_BLOCK)
\r
{
\r
+ uint8_t ReceivedByte = UDR1;
\r
+
\r
if (USB_DeviceState == DEVICE_STATE_Configured)
\r
if (USB_DeviceState == DEVICE_STATE_Configured)
\r
- Buffer_StoreElement(&Tx_Buffer,
UDR1
);
\r
+ Buffer_StoreElement(&Tx_Buffer,
ReceivedByte
);
\r
}
\r
\r
/** Event handler for the CDC Class driver Line Encoding Changed event.
\r
}
\r
\r
/** Event handler for the CDC Class driver Line Encoding Changed event.
\r