Skip to content

Add software serial support for ESP32 #5

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 1 commit into from
Dec 28, 2021
Merged
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
4 changes: 3 additions & 1 deletion src/SparkFun_u-blox_SARA-R5_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3044,7 +3044,8 @@ SARA_R5_error_t SARA_R5::init(unsigned long baud,

if (_printDebug == true) _debugPort->println(F("Begin module init."));

beginSerial(baud); // Begin serial
if(hwAvailable() == -1)
beginSerial(baud); // If port is null, begin serial

if (initType == SARA_R5_INIT_AUTOBAUD)
{
Expand Down Expand Up @@ -3594,6 +3595,7 @@ void SARA_R5::beginSerial(unsigned long baud)
#ifdef SARA_R5_SOFTWARE_SERIAL_ENABLED
else if (_softSerial != NULL)
{
_softSerial->end();
_softSerial->begin(baud);
}
#endif
Expand Down