Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit c1dd311

Browse files
author
Seppo Takalo
committed
Remove form factor checks
It is up to the user to attach the specified WiFi module to the board in hand. Do not make any assumption about used serial pins or for factor of the board used. Fixes #61
1 parent 795910e commit c1dd311

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

main.cpp

+2-11
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,7 @@ OdinWiFiInterface wifi;
2828
#include "RTWInterface.h"
2929
RTWInterface wifi;
3030

31-
#else
32-
#if MBED_CONF_APP_WIFI_SHIELD == WIFI_ESP8266
33-
#if !TARGET_FF_MORPHO
34-
#error [NOT_SUPPORTED] Only Morpho form factor devices are supported for this shield at this time
35-
#endif // !TARGET_FF_MORPHO
36-
#else
37-
#if !TARGET_FF_ARDUINO
38-
#error [NOT_SUPPORTED] Only Arduino form factor devices are supported for this shield at this time
39-
#endif // !TARGET_FF_ARDUINO
40-
#endif // MBED_CONF_APP_WIFI_SHIELD != WIFI_ESP8266
31+
#else // External WiFi modules
4132

4233
#if MBED_CONF_APP_WIFI_SHIELD == WIFI_ESP8266
4334
#include "ESP8266Interface.h"
@@ -47,7 +38,7 @@ ESP8266Interface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX);
4738
SpwfSAInterface wifi(MBED_CONF_APP_WIFI_TX, MBED_CONF_APP_WIFI_RX);
4839
#endif // MBED_CONF_APP_WIFI_SHIELD == WIFI_IDW01M1
4940

50-
#endif // TARGET_UBLOX_EVK_ODIN_W2
41+
#endif
5142

5243
const char *sec2str(nsapi_security_t sec)
5344
{

0 commit comments

Comments
 (0)