Skip to content
Snippets Groups Projects
Commit b3f3669f authored by Atis Elsts's avatar Atis Elsts
Browse files

fix initialization of link stats

parent 9fa0597e
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,9 @@ link_stats_input_callback(const linkaddr_t *lladdr) ...@@ -225,6 +225,9 @@ link_stats_input_callback(const linkaddr_t *lladdr)
#else /* LINK_STATS_INIT_ETX_FROM_RSSI */ #else /* LINK_STATS_INIT_ETX_FROM_RSSI */
stats->etx = ETX_DEFAULT * ETX_DIVISOR; stats->etx = ETX_DEFAULT * ETX_DIVISOR;
#endif /* LINK_STATS_INIT_ETX_FROM_RSSI */ #endif /* LINK_STATS_INIT_ETX_FROM_RSSI */
#if LINK_STATS_PACKET_COUNTERS
stats->cnt_current.num_packets_rx = 1;
#endif
} }
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment