Skip to content

Commit 75f82ef

Browse files
committed
Manage RS485_RX pull-up for Opta
1 parent 88fb68f commit 75f82ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/RS485.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ void RS485Class::begin(unsigned long baudrate, uint16_t config, int predelay, in
7676

7777
_transmisionBegun = false;
7878

79+
#if defined(ARDUINO_OPTA)
80+
auto _opta_uart = static_cast<UART *>(_serial);
81+
_opta_uart->begin(baudrate, config, true);
82+
#else
7983
_serial->begin(baudrate, config);
84+
#endif
8085
}
8186

8287
void RS485Class::end()

0 commit comments

Comments
 (0)