Skip to content
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