Skip to content

Commit 02074fe

Browse files
authored
Set baud rate on SAMD21 boards
1 parent 4fa67f6 commit 02074fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mt_serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void mt_serial_init(int8_t rx_pin, int8_t tx_pin, uint32_t baud) {
1515

1616
// Platform specific: init serial
1717
#if defined(ARDUINO_ARCH_SAMD)
18-
// No call to begin(), as per original code
18+
serial->begin(baud);
1919
#elif defined(ARDUINO_ARCH_ESP32)
2020
serial->begin(baud, SERIAL_8N1, rx_pin, tx_pin);
2121
#else

0 commit comments

Comments
 (0)