Skip to content

Commit

Permalink
Nitpicking
Browse files Browse the repository at this point in the history
  • Loading branch information
janakelarsson committed Jan 9, 2020
1 parent cc9df73 commit 4e73b61
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,7 @@ void ModemClass::poll()
}
}

int responseResultIndex;

responseResultIndex = _buffer.lastIndexOf("OK\r\n");

int responseResultIndex = _buffer.lastIndexOf("OK\r\n");
if (responseResultIndex >= endOfResponse) {
_ready = 1;
} else {
Expand Down

0 comments on commit 4e73b61

Please sign in to comment.