Searched refs:endstr (Results 1 – 2 of 2) sorted by relevance
190 const char endstr[] = "[EOMA]"; in eswifi_spi_read_msg() local207 if (strncmp(rsp, startstr, sizeof(endstr) - 1)) { in eswifi_spi_read_msg()214 msg_len = ret - (sizeof(startstr) - 1) - (sizeof(endstr) - 1); in eswifi_spi_read_msg()216 eswifi_async_msg(eswifi, rsp + sizeof(endstr) - 1, msg_len); in eswifi_spi_read_msg()
137 const char endstr[] = "\r\nOK\r\n>"; in eswifi_at_cmd_rsp() local163 if (len < sizeof(endstr) - 1 + sizeof(startstr) - 1) { in eswifi_at_cmd_rsp()168 for (i = len - sizeof(endstr); i > 0; i--) { in eswifi_at_cmd_rsp()169 if (!strncmp(&eswifi->buf[i], endstr, 7)) { in eswifi_at_cmd_rsp()