precommit?

discard-repeated-messages
Guðni Már Gilbert 2022-10-08 18:32:04 +00:00
parent b143247caf
commit 7989090230
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@ uint8_t USART::Read() {
return c; return c;
} }
void USART::ResetReceiver() void USART::ResetReceiver() {
{
// Disable/Enable Receiver to discard pending bytes // Disable/Enable Receiver to discard pending bytes
husart->UCSRxB &= ~(1 << 4); husart->UCSRxB &= ~(1 << 4);
husart->UCSRxB |= (1 << 4); husart->UCSRxB |= (1 << 4);