External Antenna Troubleshooting

I need the external antenna to function so I can install my sensor further from the WIFI. I am trying to create a program to run on my photon, and the line of code I am using is STARTUP(WiFi.selectAntenna(ANT_EXTERNAL));

I used the code before with no issues, but now it keeps returning an error that says “undefined reference to “wlan_select_antenna””. It doesn’t return any errors if I take this line of code out.

Any recommendations would be greatly appreciated.

@juliacantelon, which DeviceOS version are you targeting and are you certain you have your Photon targeted in the Web IDE, assuming that’s what you are using. I just tested against DeviceOS 1.3.0-rc.1 and did not get an error.