mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/lorawan : Move 'LORAMAC_DEFAULT_NETID' to 'CONFIG_'
This commit is contained in:
parent
e46c4401a9
commit
3c5c429541
@ -450,7 +450,7 @@ static void _join_abp(semtech_loramac_t *mac)
|
||||
{
|
||||
DEBUG("[semtech-loramac] starting ABP join\n");
|
||||
|
||||
semtech_loramac_set_netid(mac, LORAMAC_DEFAULT_NETID);
|
||||
semtech_loramac_set_netid(mac, CONFIG_LORAMAC_DEFAULT_NETID);
|
||||
|
||||
mutex_lock(&mac->lock);
|
||||
MibRequestConfirm_t mibReq;
|
||||
|
@ -121,8 +121,8 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default NetID (only valid with ABP join procedure)
|
||||
*/
|
||||
#ifndef LORAMAC_DEFAULT_NETID
|
||||
#define LORAMAC_DEFAULT_NETID (1U)
|
||||
#ifndef CONFIG_LORAMAC_DEFAULT_NETID
|
||||
#define CONFIG_LORAMAC_DEFAULT_NETID (1U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ static inline void gnrc_lorawan_mlme_reset(gnrc_lorawan_t *mac)
|
||||
mac->mlme.activation = MLME_ACTIVATION_NONE;
|
||||
mac->mlme.pending_mlme_opts = 0;
|
||||
mac->rx_delay = (LORAMAC_DEFAULT_RX1_DELAY / MS_PER_SEC);
|
||||
mac->mlme.nid = LORAMAC_DEFAULT_NETID;
|
||||
mac->mlme.nid = CONFIG_LORAMAC_DEFAULT_NETID;
|
||||
}
|
||||
|
||||
static inline void gnrc_lorawan_mlme_backoff_init(gnrc_lorawan_t *mac)
|
||||
|
Loading…
Reference in New Issue
Block a user