mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-01 22:40:11 +02:00
Add glitch protection to the software UART in the XPLAINBridge project code, so that very short glitches on the RX line don't cause a frame reception to occur.
This commit is contained in:
@@ -180,7 +180,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
|
||||
{
|
||||
EndpointConfigSuccess &= CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);
|
||||
|
||||
/* Configure the UART flush timer */
|
||||
/* Configure the UART flush timer - run at FCPU/1024 for maximum interval before overflow */
|
||||
TCCR0B = ((1 << CS02) | (1 << CS00));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user