Skip to content
Snippets Groups Projects
Commit ce6b6b84 authored by Cenk Gündoğan's avatar Cenk Gündoğan
Browse files

rpl: decrease default numbers

parent 4ef889f9
No related branches found
No related tags found
No related merge requests found
...@@ -36,14 +36,14 @@ extern "C" { ...@@ -36,14 +36,14 @@ extern "C" {
* @brief Number of RPL instances * @brief Number of RPL instances
*/ */
#ifndef GNRC_RPL_INSTANCES_NUMOF #ifndef GNRC_RPL_INSTANCES_NUMOF
#define GNRC_RPL_INSTANCES_NUMOF (2) #define GNRC_RPL_INSTANCES_NUMOF (1)
#endif #endif
/** /**
* @brief Number of RPL parents * @brief Number of RPL parents
*/ */
#ifndef GNRC_RPL_PARENTS_NUMOF #ifndef GNRC_RPL_PARENTS_NUMOF
#define GNRC_RPL_PARENTS_NUMOF (6) #define GNRC_RPL_PARENTS_NUMOF (3)
#endif #endif
/** /**
......
...@@ -159,14 +159,11 @@ int _gnrc_rpl_dodag_show(void) ...@@ -159,14 +159,11 @@ int _gnrc_rpl_dodag_show(void)
else { else {
printf("[X]"); printf("[X]");
} }
if (i < (GNRC_RPL_INSTANCES_NUMOF - 1)) { putchar('\t');
printf("\t");
}
else {
printf("\n");
}
} }
putchar('\n');
printf("parent table:\t"); printf("parent table:\t");
for (uint8_t i = 0; i < GNRC_RPL_PARENTS_NUMOF; ++i) { for (uint8_t i = 0; i < GNRC_RPL_PARENTS_NUMOF; ++i) {
if (gnrc_rpl_parents[i].state == 0) { if (gnrc_rpl_parents[i].state == 0) {
...@@ -175,9 +172,7 @@ int _gnrc_rpl_dodag_show(void) ...@@ -175,9 +172,7 @@ int _gnrc_rpl_dodag_show(void)
else { else {
printf("[X]"); printf("[X]");
} }
if (i < (GNRC_RPL_PARENTS_NUMOF - 1)) { putchar('\t');
putchar('\t');
}
} }
putchar('\n'); putchar('\n');
putchar('\n'); putchar('\n');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment