Skip to content

Commit aba76fc

Browse files
Rocketctsandeepmistry
authored andcommitted
Fix one char SMS receiving
Added a ```+1``` in the available's return to avoid that SMS with only 1 char are discarded Resolve #63 (comment)
1 parent 9384397 commit aba76fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GSM_SMS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int GSM_SMS::available()
149149
_smsDataEndIndex = _incomingBuffer.length() - 1;
150150
}
151151

152-
return (_smsDataEndIndex - _smsDataIndex);
152+
return (_smsDataEndIndex - _smsDataIndex) + 1;
153153
} else {
154154
_incomingBuffer = "";
155155
}

0 commit comments

Comments
 (0)