forked from mirror/qmk_firmware
Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy.
Minor documentation improvements.
This commit is contained in:
@@ -92,10 +92,9 @@ int main(void)
|
||||
for (;;)
|
||||
{
|
||||
/* Echo bytes from the host to the target via the hardware USART */
|
||||
int16_t ReceivedByte = CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
|
||||
if (!(ReceivedByte < 0) && (UCSR1A & (1 << UDRE1)))
|
||||
if ((UCSR1A & (1 << UDRE1)) && CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
|
||||
{
|
||||
UDR1 = ReceivedByte;
|
||||
UDR1 = CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
|
||||
|
||||
LEDs_TurnOnLEDs(LEDMASK_TX);
|
||||
PulseMSRemaining.TxLEDPulse = TX_RX_LED_PULSE_MS;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
/** \file
|
||||
*
|
||||
* Main source file for the Standalone Programmer project. This file contains the main tasks of
|
||||
* the demo and is responsible for the initial application hardware configuration.
|
||||
* the project and is responsible for the initial application hardware configuration.
|
||||
*/
|
||||
|
||||
#define INCLUDE_FROM_STANDALONEPROG_C
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
/** \file
|
||||
*
|
||||
* Main source file for the LEDNotfier project. This file contains the main tasks of
|
||||
* the demo and is responsible for the initial application hardware configuration.
|
||||
* the project and is responsible for the initial application hardware configuration.
|
||||
*/
|
||||
|
||||
#include "LEDNotifier.h"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
/** \file
|
||||
*
|
||||
* Main source file for the USBtoSerial project. This file contains the main tasks of
|
||||
* the demo and is responsible for the initial application hardware configuration.
|
||||
* the project and is responsible for the initial application hardware configuration.
|
||||
*/
|
||||
|
||||
#include "USBtoSerial.h"
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
/** \file
|
||||
*
|
||||
* Main source file for the XPLAINBridge project. This file contains the main tasks of
|
||||
* the demo and is responsible for the initial application hardware configuration.
|
||||
* the project and is responsible for the initial application hardware configuration.
|
||||
*/
|
||||
|
||||
#include "XPLAINBridge.h"
|
||||
|
||||
Reference in New Issue
Block a user