Skip to content

Commit

Permalink
FHSS: fixed missing us convert
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso committed Oct 30, 2018
1 parent ef38363 commit 766e305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Service_Libs/fhss/fhss_ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static bool fhss_ws_check_tx_time(fhss_structure_t *fhss_structure, uint16_t tx_
return true;
}
uint32_t tx_time = fhss_get_tx_time(fhss_structure, tx_length, phy_header_length, phy_tail_length);
uint32_t time_to_bc_channel_us = get_remaining_slots_us(fhss_structure, fhss_broadcast_handler, fhss_structure->ws->fhss_configuration.fhss_broadcast_interval);
uint32_t time_to_bc_channel_us = get_remaining_slots_us(fhss_structure, fhss_broadcast_handler, MS_TO_US(fhss_structure->ws->fhss_configuration.fhss_broadcast_interval));
if (tx_time > time_to_bc_channel_us) {
return false;
}
Expand Down

0 comments on commit 766e305

Please sign in to comment.