Browse Source

Merge 3d16883807 into adc631f315

pull/3018/merge
Alexander Hoff ❍ 16 hours ago
committed by GitHub
parent
commit
573b1a7066
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/helpers/bridges/RS232Bridge.cpp

6
src/helpers/bridges/RS232Bridge.cpp

@ -17,7 +17,11 @@ void RS232Bridge::begin() {
((HardwareSerial *)_serial)->setPins(WITH_RS232_BRIDGE_RX, WITH_RS232_BRIDGE_TX);
#elif defined(NRF52_PLATFORM)
// Tested with RAK_4631 and T114
((Uart *)_serial)->setPins(WITH_RS232_BRIDGE_RX, WITH_RS232_BRIDGE_TX);
Uart *uart = (Uart *)_serial;
if (*uart) {
uart->end(); // nRF52 begin() ignores baud and pin changes while already started
}
uart->setPins(WITH_RS232_BRIDGE_RX, WITH_RS232_BRIDGE_TX);
#elif defined(RP2040_PLATFORM)
((SerialUART *)_serial)->setRX(WITH_RS232_BRIDGE_RX);
((SerialUART *)_serial)->setTX(WITH_RS232_BRIDGE_TX);

Loading…
Cancel
Save