File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 22
22
static const uint8_t infoStackName [] = "OpenWSN " ;
23
23
#define OPENWSN_VERSION_MAJOR 1
24
24
#define OPENWSN_VERSION_MINOR 21
25
- #define OPENWSN_VERSION_PATCH 3
25
+ #define OPENWSN_VERSION_PATCH 4
26
26
27
27
#ifndef TRUE
28
28
#define TRUE 1
Original file line number Diff line number Diff line change @@ -2617,11 +2617,15 @@ void synchronizePacket(PORT_TIMER_WIDTH timeReceived) {
2617
2617
2618
2618
// log a large timeCorrection
2619
2619
if (
2620
- ieee154e_vars .isSync == TRUE
2620
+ ieee154e_vars .isSync == TRUE &&
2621
+ (
2622
+ timeCorrection < - LIMITLARGETIMECORRECTION ||
2623
+ timeCorrection > LIMITLARGETIMECORRECTION
2624
+ )
2621
2625
) {
2622
2626
openserial_printError (COMPONENT_IEEE802154E ,ERR_LARGE_TIMECORRECTION ,
2623
- (errorparameter_t )timeCorrection ,
2624
- (errorparameter_t )0 );
2627
+ (errorparameter_t )timeCorrection ,
2628
+ (errorparameter_t )0 );
2625
2629
}
2626
2630
2627
2631
// update the stats
@@ -2661,11 +2665,15 @@ void synchronizeAck(PORT_SIGNED_INT_WIDTH timeCorrection) {
2661
2665
#endif
2662
2666
// log a large timeCorrection
2663
2667
if (
2664
- ieee154e_vars .isSync == TRUE
2668
+ ieee154e_vars .isSync == TRUE &&
2669
+ (
2670
+ timeCorrection < - LIMITLARGETIMECORRECTION ||
2671
+ timeCorrection > LIMITLARGETIMECORRECTION
2672
+ )
2665
2673
) {
2666
2674
openserial_printError (COMPONENT_IEEE802154E ,ERR_LARGE_TIMECORRECTION ,
2667
- (errorparameter_t )timeCorrection ,
2668
- (errorparameter_t )1 );
2675
+ (errorparameter_t )timeCorrection ,
2676
+ (errorparameter_t )1 );
2669
2677
}
2670
2678
2671
2679
// update the stats
You can’t perform that action at this time.
0 commit comments