Skip to content

Commit 51c6ec1

Browse files
committed
commit
1 parent 46c4407 commit 51c6ec1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cores/arduino/UART.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,14 @@ void UartClass::begin(unsigned long baud, uint16_t config)
8888

8989
// Setup port mux
9090

91-
int32_t baud_setting = 0;
92-
93-
//Make sure global interrupts are disabled during initialization
94-
//uint8_t oldSREG = SREG;
91+
int32_t baud_setting = baud;
9592

9693
baud_setting = 100;
9794

9895
_written = false;
9996

10097
int8_t sigrow_val = 0;
101-
baud_setting += (baud_setting * sigrow_val) / 1024;
98+
baud_setting = baud;
10299

103100
}
104101

0 commit comments

Comments
 (0)