Skip to content

Commit

Permalink
Merge pull request ARMmbed#1705 from ARMmbed/IOTTHD-2531
Browse files Browse the repository at this point in the history
WS Lib: Fixed byte order of fixed channel
  • Loading branch information
Jarkko Paso committed May 15, 2018
2 parents 1f9162d + f8d3d67 commit 776e0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ static void ws_bootstrap_pan_config_analyse(struct protocol_interface_info_entry
cur->ws_info->hopping_schdule.fhss_bc_dwell_interval = ws_bs_ie.dwell_interval;

cur->ws_info->hopping_schdule.channel_function = ws_bs_ie.channel_function;
cur->ws_info->hopping_schdule.fhss_uc_dwell_interval = ws_us->dwell_interval;

fhss_ws_configuration_t fhss_configuration;
memcpy(&fhss_configuration, ns_fhss_ws_configuration_get(cur->ws_info->fhss_api), sizeof(fhss_ws_configuration_t));
Expand Down
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_ie_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ uint8_t *ws_wp_nested_hopping_schedule_write(uint8_t *ptr,struct ws_hopping_sche
switch (hopping_schedule->channel_function) {
case 0:
//Fixed channel inline
ptr = common_write_16_bit(hopping_schedule->fixed_channel, ptr);
ptr = common_write_16_bit_inverse(hopping_schedule->fixed_channel, ptr);
break;
case 1:
case 2:
Expand Down

0 comments on commit 776e0e5

Please sign in to comment.