ARM-software / CMSIS-Driver

Repository of microcontroller peripheral driver implementing the CMSIS-Driver API specification

Home Page:https://arm-software.github.io/CMSIS-Driver/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetASCIIResponseCode looks ahead too far [ESP32]

xennex22 opened this issue · 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.