Skip to content
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

Open
RoyaGhaennezhad opened this issue Dec 11, 2021 · 0 comments
Open

Bug in gsm_gprs_httpRead() #41

RoyaGhaennezhad opened this issue Dec 11, 2021 · 0 comments

Comments

@RoyaGhaennezhad
Copy link

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; } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant