Skip to content

Commit

Permalink
Added HAVE_WS flag to FHSS api (ARMmbed#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso authored Feb 4, 2020
1 parent 4f27500 commit fd11ffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/Service_Libs/fhss/fhss_test_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@

int8_t fhss_set_optimal_packet_length(const fhss_api_t *fhss_api, uint16_t packet_length)
{
(void) fhss_api;
(void) packet_length;
#ifdef HAVE_WS
fhss_structure_t *fhss_structure = fhss_get_object_with_api(fhss_api);
if (!fhss_structure) {
return -1;
}
fhss_structure->optimal_packet_length = packet_length;
fhss_set_txrx_slot_length(fhss_structure);
tr_debug("Setting FHSS optimal packet length to: %u", fhss_structure->optimal_packet_length);
#endif
return 0;
}

0 comments on commit fd11ffa

Please sign in to comment.