Closed SeppoTakalo closed 6 years ago
The warning should be easy to solve.
Regarding the compilation error I would like to ask your help:
Unfortunately, I do not have access to ARM a/o IAR, so could you pls. try to re-compile again after substituting in file SPWFSAxx.cpp
call index(...)
with a call to strchr(...)
?
Thanks in advance!
It should work as index()
is marked LEGACY in C standards and should be replaced with strchr()
http://pubs.opengroup.org/onlinepubs/009695399/functions/index.html
I'll check
Thanks and sorry for the inconvenience :flushed:
Yes, it seems to fix the build at least on ARM. My IAR setup is not in working condition.
So only change required to replace index()
with strchr()
if(_parser.recv("%[^\n]\n", _msg_buffer) && _recv_delim_lf())
{
if(strstr(_msg_buffer, ":24:") != NULL) { // WiFi Up
debug_if(_dbg_on, "AT^ %s\n", _msg_buffer);
if(strchr(_msg_buffer, '.') != NULL) { // IPv4 address
break;
} else {
continue;
}
Will come up with a new master
branch commit asap!
Done.
Fixed.
I spotted from my CI runs that after latest changes, the master of this driver is broken on ARM and IAR
@betzw Please check.