MarcoMartines / GSM-GPRS-GPS-Shield

GSM/GPRS & GPS Shield Library for modules using SIM900/SIM908
GNU General Public License v2.0
208 stars 152 forks source link

SendATCmdWaitResp problem #27

Open marcussinus opened 9 years ago

marcussinus commented 9 years ago

Hi, char GSM::SendATCmdWaitResp(const __FlashStringHelper *AT_cmd_string, .... you close with: return (ret_val);

BUT: char GSM::SendATCmdWaitResp(char const *AT_cmd_string, ... you close with: WaitResp(1000, 5000); return (ret_val);

It took me quite some hours to figure out why the comm_buf is empty after calling SendATCmdWaitResp(AT_cmnd_str,....

I removed WaitResp(1000, 5000); and now it works OK.

I think you should remove it also. Or not?