Skip to content

Commit 4cd6c49

Browse files
author
Jarkko Paso
authored
Merge pull request ARMmbed#1579 from ARMmbed/fhss_bug_fix
FHSS: Fixed scramble table bug
2 parents 24f418c + 296a2f1 commit 4cd6c49

File tree

1 file changed

+2
-6
lines changed
  • source/Service_Libs/fhss

1 file changed

+2
-6
lines changed

source/Service_Libs/fhss/fhss.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,8 @@ static void fhss_handle_state_set(const fhss_api_t *api, fhss_states fhss_state,
759759
tr_debug("Synch same panid %u", pan_id);
760760
return;
761761
}
762-
if (fhss_structure->bs->fhss_scramble_table == NULL) {
763-
if (fhss_generate_scramble_table(fhss_structure)) {
764-
tr_error("Failed to generate scramble table");
765-
return;
766-
}
767-
}
762+
fhss_generate_scramble_table(fhss_structure);
763+
768764
uint32_t datarate = fhss_structure->callbacks.read_datarate(fhss_structure->fhss_api);
769765
fhss_set_datarate(fhss_structure, datarate);
770766
uint8_t mac_address[8];

0 commit comments

Comments
 (0)