From c472f4e6aed69914ab091b484763aa44c35a0881 Mon Sep 17 00:00:00 2001 From: klassents Date: Fri, 1 Nov 2024 05:02:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/arduino/HardwareSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/HardwareSerial.cpp b/cores/arduino/HardwareSerial.cpp index 284d8fc..cdd7b64 100644 --- a/cores/arduino/HardwareSerial.cpp +++ b/cores/arduino/HardwareSerial.cpp @@ -56,7 +56,7 @@ void HardwareSerial::begin(unsigned long baud, uint8_t config) // leaving the data length selected as 8 bits // stop bit // stop bit = 1 - everything is zero, don't set anything - if ((config >> 3) & (0x01 == 1)) // stop bit = 2 + if (((config >> 3) & 0x01) == 1) // stop bit = 2 reg2config |= UART_CONTROL2_STOP_1_M; // turn on the receiver and transmitter, apply the parsed config