projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
USBtoSerial
/
USBtoSerial.c
diff --git
a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
index
d5e871c
..
92449a6
100644
(file)
--- a/
Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
+++ b/
Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
@@
-299,7
+299,7
@@
ISR(USART1_RX_vect, ISR_BLOCK)
uint8_t ReceivedByte = UDR1;
\r
\r
/* Only store received characters if the USB interface is connected */
\r
uint8_t ReceivedByte = UDR1;
\r
\r
/* Only store received characters if the USB interface is connected */
\r
- if ((USB_DeviceState
!
= DEVICE_STATE_Configured) && LineEncoding.BaudRateBPS)
\r
+ if ((USB_DeviceState
=
= DEVICE_STATE_Configured) && LineEncoding.BaudRateBPS)
\r
Buffer_StoreElement(&Tx_Buffer, ReceivedByte);
\r
}
\r
\r
Buffer_StoreElement(&Tx_Buffer, ReceivedByte);
\r
}
\r
\r