diff --git a/features/lorawan/lorastack/mac/LoRaMac.h b/features/lorawan/lorastack/mac/LoRaMac.h index dd4bb27cfa..49e24492d9 100644 --- a/features/lorawan/lorastack/mac/LoRaMac.h +++ b/features/lorawan/lorastack/mac/LoRaMac.h @@ -370,14 +370,14 @@ public: * * @return LORAWAN_STATUS_OK or a negative error code on failure. */ - lorawan_status_t prepare_join(const lorawan_connect_t *params, bool is_otaa = true); + lorawan_status_t prepare_join(const lorawan_connect_t *params, bool is_otaa); /** * @brief join Joins the network. * @param is_otaa True if joining is to be done using OTAA, false for ABP. * @return LORAWAN_STATUS_OK or a negative error code on failure. */ - lorawan_status_t join(bool is_otaa = true); + lorawan_status_t join(bool is_otaa); private: /** diff --git a/features/lorawan/lorastack/phy/loraphy_target.h b/features/lorawan/lorastack/phy/loraphy_target.h index a6815c3485..460a40ed20 100644 --- a/features/lorawan/lorastack/phy/loraphy_target.h +++ b/features/lorawan/lorastack/phy/loraphy_target.h @@ -60,8 +60,6 @@ #elif MBED_CONF_LORA_PHY == US915_HYBRID #include "lorawan/lorastack/phy/LoRaPHYUS915Hybrid.h" #define LoRaPHY_region LoRaPHYUS915Hybrid - #else - #error "Unsupported region, check your configuration." #endif //MBED_CONF_LORA_PHY == VALUE #else #error "Must set LoRa PHY layer parameters."