Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 776e0e5

Browse files
author
Jarkko Paso
authored
Merge pull request ARMmbed#1705 from ARMmbed/IOTTHD-2531
WS Lib: Fixed byte order of fixed channel
2 parents 1f9162d + f8d3d67 commit 776e0e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ static void ws_bootstrap_pan_config_analyse(struct protocol_interface_info_entry
582582
cur->ws_info->hopping_schdule.fhss_bc_dwell_interval = ws_bs_ie.dwell_interval;
583583

584584
cur->ws_info->hopping_schdule.channel_function = ws_bs_ie.channel_function;
585+
cur->ws_info->hopping_schdule.fhss_uc_dwell_interval = ws_us->dwell_interval;
585586

586587
fhss_ws_configuration_t fhss_configuration;
587588
memcpy(&fhss_configuration, ns_fhss_ws_configuration_get(cur->ws_info->fhss_api), sizeof(fhss_ws_configuration_t));

source/6LoWPAN/ws/ws_ie_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ uint8_t *ws_wp_nested_hopping_schedule_write(uint8_t *ptr,struct ws_hopping_sche
171171
switch (hopping_schedule->channel_function) {
172172
case 0:
173173
//Fixed channel inline
174-
ptr = common_write_16_bit(hopping_schedule->fixed_channel, ptr);
174+
ptr = common_write_16_bit_inverse(hopping_schedule->fixed_channel, ptr);
175175
break;
176176
case 1:
177177
case 2:

0 commit comments

Comments
 (0)