TSCH: compute TSCH_SLOTS_PER_SECOND based on current timeslot timings rather than default

This commit is contained in:
Simon Duquennoy 2018-10-03 13:35:34 +02:00
parent 572c6725d3
commit 665f21592f
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@
#define TSCH_TIMESYNC_MEASUREMENT_ERROR US_TO_RTIMERTICKS(32)
/* The approximate number of slots per second */
#define TSCH_SLOTS_PER_SECOND (1000000 / TSCH_DEFAULT_TS_TIMESLOT_LENGTH)
#define TSCH_SLOTS_PER_SECOND (1000000 / tsch_timing_us[tsch_ts_timeslot_length])
/* Calculate packet tx/rx duration in rtimer ticks based on sent
* packet len in bytes with 802.15.4 250kbps data rate.