CMSIS-Driver icon indicating copy to clipboard operation
CMSIS-Driver copied to clipboard

GetASCIIResponseCode looks ahead too far [ESP32]

Open xennex22 opened this issue 3 years ago • 0 comments

GetASCIIResponseCode search all of the rx buffer for keywords like OK, ERROR etc.

If the data arrives line by line this is ok. If the data arrives all at once then GetASCIIResponseCode will generally find OK and then ignore the preceding data. I note that AT+GMR has special processing to cope with this.

The solution is for GetASCIIResponseCode (and its associated functions) to only search the buffer for one line when matching strings.

xennex22 avatar May 02 '22 20:05 xennex22