Skip to content

Commit 2da1972

Browse files
committed
CMake: Fix EP_ATLAS build
Enable Onboard TELIT ME310 driver only when cellular library is included. This allows us to remove the cellular library as a requirement to build applications that do not require it (i.e Blinky).
1 parent 8a19e3e commit 2da1972

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS/ONBOARD_TELIT_ME310.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if MBED_CONF_CELLULAR_PRESENT
19+
1820
#include "gpio_api.h"
1921
#include "platform/mbed_thread.h"
2022
#include "PinNames.h"
@@ -167,3 +169,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
167169
static ONBOARD_TELIT_ME310 device(&serial);
168170
return &device;
169171
}
172+
173+
#endif // MBED_CONF_CELLULAR_PRESENT

0 commit comments

Comments
 (0)