Skip to content

Commit fd11ffa

Browse files
author
Jarkko Paso
authored
Added HAVE_WS flag to FHSS api (#2296)
1 parent 4f27500 commit fd11ffa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/Service_Libs/fhss/fhss_test_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@
3131

3232
int8_t fhss_set_optimal_packet_length(const fhss_api_t *fhss_api, uint16_t packet_length)
3333
{
34+
(void) fhss_api;
35+
(void) packet_length;
36+
#ifdef HAVE_WS
3437
fhss_structure_t *fhss_structure = fhss_get_object_with_api(fhss_api);
3538
if (!fhss_structure) {
3639
return -1;
3740
}
3841
fhss_structure->optimal_packet_length = packet_length;
3942
fhss_set_txrx_slot_length(fhss_structure);
4043
tr_debug("Setting FHSS optimal packet length to: %u", fhss_structure->optimal_packet_length);
44+
#endif
4145
return 0;
4246
}

0 commit comments

Comments
 (0)