Skip to content

Commit f51669a

Browse files
author
Jarkko Paso
authored
Bug fix: Do not print UFSI drift when fixed channel is used (ARMmbed#2488)
1 parent 18fa048 commit f51669a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/6LoWPAN/ws/ws_neighbor_class.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ static int own_ceil(float value)
102102
static void ws_neighbor_calculate_ufsi_drift(ws_neighbor_class_entry_t *ws_neighbor, ws_utt_ie_t *ws_utt, uint32_t timestamp, uint8_t address[8])
103103
{
104104
if (ws_neighbor->fhss_data.uc_timing_info.utt_rx_timestamp && ws_neighbor->fhss_data.uc_timing_info.ufsi) {
105+
// No UFSI on fixed channel
106+
if (ws_neighbor->fhss_data.uc_timing_info.unicast_channel_function == WS_FIXED_CHANNEL) {
107+
return;
108+
}
105109
uint32_t seq_length = 0x10000;
106110
if (ws_neighbor->fhss_data.uc_timing_info.unicast_channel_function == WS_TR51CF) {
107111
seq_length = ws_neighbor->fhss_data.uc_timing_info.unicast_number_of_channels;

0 commit comments

Comments
 (0)