TSCH: define SYNC_IE_BOUND from timing in use rather than default

This commit is contained in:
Simon Duquennoy 2018-10-03 12:59:52 +02:00
parent 423412d99c
commit 3ba1b43bd9
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@
/* Truncate received drift correction information to maximum half
* of the guard time (one fourth of TSCH_DEFAULT_TS_RX_WAIT) */
#define SYNC_IE_BOUND ((int32_t)US_TO_RTIMERTICKS(TSCH_DEFAULT_TS_RX_WAIT / 4))
#define SYNC_IE_BOUND ((int32_t)US_TO_RTIMERTICKS(tsch_timing_us[tsch_ts_rx_wait] / 4))
/* By default: check that rtimer runs at >=32kHz and use a guard time of 10us */
#if RTIMER_SECOND < (32 * 1024)