Up until today my project was working without any issues (last time was yesterday when I was able to flash my project to Photon without issues) , however, for some reason today STARTUP(WiFi.selectAntenna(ANT_EXTERNAL)); creates following error code:
In file included from blynk/BlynkApi.h:18:0,
from blynk/BlynkApiParticle.h:14,
from blynk/BlynkParticle.h:16,
from blynk/BlynkSimpleParticle.h:14,
from blynk/blynk.h:2,
from watergarden.cpp:2:
blynk/BlynkProtocolDefs.h:88:0: warning: “htons” redefined [enabled by default]
#define htons(x) ( ((x)<<8) | (((x)>>8)&0xFF) )
^
In file included from …/hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from watergarden.cpp:2:
…/platform/NET/CC3000/CC3000_Host_Driver/socket.h:188:0: note: this is the location of the previous definition
#define htons(A) ((((UINT32)(A) & 0xff00) >> 8) |
^
In file included from blynk/BlynkApi.h:18:0,
from blynk/BlynkApiParticle.h:14,
from blynk/BlynkParticle.h:16,
from blynk/BlynkSimpleParticle.h:14,
from blynk/blynk.h:2,
from watergarden.cpp:2:
blynk/BlynkProtocolDefs.h:89:0: warning: “htonl” redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) |
^
In file included from …/hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from watergarden.cpp:2:
…/platform/NET/CC3000/CC3000_Host_Driver/socket.h:180:0: note: this is the location of the previous definition
#define htonl(A) ((((UINT32)(A) & 0xff000000) >> 24) |
^
In file included from blynk/BlynkApi.h:18:0,
from blynk/BlynkApiParticle.h:14,
from blynk/BlynkParticle.h:16,
from blynk/BlynkSimpleParticle.h:14,
from blynk/blynk.h:2,
from watergarden.cpp:2:
blynk/BlynkProtocolDefs.h:93:0: warning: “ntohs” redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from …/hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from watergarden.cpp:2:
…/platform/NET/CC3000/CC3000_Host_Driver/socket.h:192:0: note: this is the location of the previous definition
#define ntohs htons
^
In file included from blynk/BlynkApi.h:18:0,
from blynk/BlynkApiParticle.h:14,
from blynk/BlynkParticle.h:16,
from blynk/BlynkSimpleParticle.h:14,
from blynk/blynk.h:2,
from watergarden.cpp:2:
blynk/BlynkProtocolDefs.h:94:0: warning: “ntohl” redefined [enabled by default]
#define ntohl(x) htonl(x)
^
In file included from …/hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from watergarden.cpp:2:
…/platform/NET/CC3000/CC3000_Host_Driver/socket.h:185:0: note: this is the location of the previous definition
#define ntohl htonl
^
In file included from blynk/BlynkParticle.h:16:0,
from blynk/BlynkSimpleParticle.h:14,
from blynk/blynk.h:2,
from watergarden.cpp:2:
blynk/BlynkApiParticle.h:87:6: warning: #warning “analogInputToDigitalPin not defined => Named analog pins will not work” [-Wcpp]
#warning “analogInputToDigitalPin not defined => Named analog pins will not work”
^
/tmp/cc3hxQqQ.ltrans31.ltrans.o: In function spark::WiFiClass::selectAntenna(WLanSelectAntenna_TypeDef) [clone .isra.2]': /spark/compile_service/shared/workspace/0_core__24_1/firmware/main/../wiring/inc/spark_wiring_wifi.h:184: undefined reference to
wlan_select_antenna’
collect2: error: ld returned 1 exit status
make[1]: *** [92de11860a7592675ca818b8bab316eeabceb040b94ad9c5192491e1cab2.elf] Error 1
make: *** [main] Error 2