Skip to content

Commit a593418

Browse files
authored
Merge pull request #3 from arthurmolina/master
Fixing inheritance issue with begin from SoftwareSerial
2 parents 9e8fcfc + 98b8f24 commit a593418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sim800L.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void Sim800L::begin()
106106
pinMode(RESET_PIN, OUTPUT);
107107

108108
_baud = DEFAULT_BAUD_RATE; // Default baud rate 9600
109-
this->begin(_baud);
109+
this->SoftwareSerial::begin(_baud);
110110

111111
_sleepMode = 0;
112112
_functionalityMode = 1;
@@ -122,7 +122,7 @@ void Sim800L::begin(uint32_t baud)
122122
pinMode(RESET_PIN, OUTPUT);
123123

124124
_baud = baud;
125-
this->begin(_baud);
125+
this->SoftwareSerial::begin(_baud);
126126

127127
_sleepMode = 0;
128128
_functionalityMode = 1;

0 commit comments

Comments
 (0)