Fix code repetition

This commit is contained in:
2024-08-27 18:06:39 +02:00
parent 337648e98b
commit 1ecdba78f8
2 changed files with 4 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ char USART_GetChar(void)
{
unsigned char newtail;
if (rxhead == rxtail) {
if (!USART_IsDataAvailable()) {
return '\0'; // Non-blocking
}