Closed jackdunger closed 6 years ago
@jackdunger Thank you for dragging this bug out, I fixed this bug by adding functionality sim900_read_string_until, it will miss all content if using sim900_wait_for_resp for OK\r\n
before read the response.
A new demo showing the effect: https://github.com/Seeed-Studio/GPRS_SIM900/tree/master/examples/GPRS_Show_Incoming_Call
Currently:
GPRS::isCallActive
sendsAT+CPAS\r\n
, reads back the response and then waits forOK\r\n
. So, even when a call is in progress, it can miss the+CPAS
response and returnfalse
by default.This PR switches the wait and read commands.
Fixes #10 for me.