Skip to content

Manage RS485_RX pull-up for Opta #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- fqbn: arduino:mbed_portenta:envie_m7
platforms: |
- name: arduino:mbed_portenta
- fqbn: arduino:mbed_opta:opta
platforms: |
- name: arduino:mbed_opta

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ sentence=Enables sending and receiving data using the RS-485 standard with RS-48
paragraph=This library supports the Maxim Integrated MAX3157 and equivalent chipsets.
category=Communication
url=http://www.arduino.cc/en/Reference/ArduinoRS485
architectures=samd,mbed_portenta
architectures=samd,mbed_portenta,mbed_opta
includes=ArduinoRS485.h
5 changes: 5 additions & 0 deletions src/RS485.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ void RS485Class::begin(unsigned long baudrate, uint16_t config, int predelay, in

_transmisionBegun = false;

#if defined(ARDUINO_OPTA)
auto _opta_uart = static_cast<UART *>(_serial);
_opta_uart->begin(baudrate, config, true);
#else
_serial->begin(baudrate, config);
#endif
}

void RS485Class::end()
Expand Down