Update PPPOSClient.cpp
This commit is contained in:
parent
51578c6ac2
commit
8c1ff1e191
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ int PPPOSClient::read(uint8_t *buf, size_t size) {
|
||||||
int res = -1;
|
int res = -1;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
if (available()){
|
if (available()){
|
||||||
for (int i = _startPos; i < _endPos; i++) {
|
for (int i = _startPos; i < (_endPos - 1); i++) {
|
||||||
if (j < size) {
|
if (j < size) {
|
||||||
buf[j] = RxBuffer[i];
|
buf[j] = RxBuffer[i];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue