1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 03:53:49 +01:00

gnrc/rpl: Move GNRC_RPL_DAO_SEND_RETRIES to 'CONFIG_' namespace

This commit is contained in:
Leandro Lanzieri 2020-04-23 10:25:18 +02:00
parent 51939c3608
commit df29a769ba
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 4 additions and 3 deletions

View File

@ -326,8 +326,8 @@ static inline bool GNRC_RPL_COUNTER_GREATER_THAN(uint8_t A, uint8_t B)
</a> </a>
* @{ * @{
*/ */
#ifndef GNRC_RPL_DAO_SEND_RETRIES #ifndef CONFIG_GNRC_RPL_DAO_SEND_RETRIES
#define GNRC_RPL_DAO_SEND_RETRIES (4) #define CONFIG_GNRC_RPL_DAO_SEND_RETRIES (4)
#endif #endif
#ifndef GNRC_RPL_DAO_ACK_DELAY #ifndef GNRC_RPL_DAO_ACK_DELAY
#define GNRC_RPL_DAO_ACK_DELAY (3000UL) #define GNRC_RPL_DAO_ACK_DELAY (3000UL)

View File

@ -353,7 +353,8 @@ void _dao_handle_send(gnrc_rpl_dodag_t *dodag)
return; return;
} }
#endif #endif
if ((dodag->dao_ack_received == false) && (dodag->dao_counter < GNRC_RPL_DAO_SEND_RETRIES)) { if ((dodag->dao_ack_received == false) &&
(dodag->dao_counter < CONFIG_GNRC_RPL_DAO_SEND_RETRIES)) {
dodag->dao_counter++; dodag->dao_counter++;
gnrc_rpl_send_DAO(dodag->instance, NULL, dodag->default_lifetime); gnrc_rpl_send_DAO(dodag->instance, NULL, dodag->default_lifetime);
evtimer_del(&gnrc_rpl_evtimer, (evtimer_event_t *)&dodag->dao_event); evtimer_del(&gnrc_rpl_evtimer, (evtimer_event_t *)&dodag->dao_event);