Skip to content

Commit

Permalink
Fix timeout to prevent sent SMS error.
Browse files Browse the repository at this point in the history
  • Loading branch information
essembeh authored and Pillar1989 committed Dec 27, 2019
1 parent 9752883 commit aa5aa00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPRS_Shield_Arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ bool GPRS::sendSMS(const char *number, const char *data)
sim900_send_cmd(data);
delay(500);
sim900_send_End_Mark();
return sim900_wait_for_resp("OK\r\n", CMD, 20);
return sim900_wait_for_resp("OK\r\n", CMD, 20U, 5000U);
}

char GPRS::isSMSunread()
Expand Down

0 comments on commit aa5aa00

Please sign in to comment.