-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in gsm_gprs_httpRead() #41
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I find that in atc_command function we erase rx_Buffer whit atc empty(atc); commands before copy data from rx_Bufferto to Auxiliary buffer .for debugging this issue I added a bit field like
uint8_t http_read_start :1 ;
and set it in gsm_gprs_httpRead function before sending at command and reset it at end of function
Next in atc_empty function check this bit feild like this
void atc_empty(atc_t *atc) { if(atc->http_read_start==0) { memset(atc->rxBuffer, 0, _ATC_RXSIZE); atc->rxIndex = 0; } }
The text was updated successfully, but these errors were encountered: