Skip to content

Commit 7b7f1c1

Browse files
author
Jarkko Paso
authored
Merge pull request #1945 from ARMmbed/fix_synch_parent_warn
FHSS WS: Fixed synch parent warning
2 parents 38b28e2 + be06ecb commit 7b7f1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Service_Libs/fhss/fhss_ws.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ int fhss_ws_set_parent(fhss_structure_t *fhss_structure, const uint8_t eui64[8],
749749
if (!bc_timing_info->broadcast_interval || !bc_timing_info->broadcast_dwell_interval) {
750750
return -1;
751751
}
752-
if ((S_TO_US(fhss_structure->ws->min_synch_interval) > (fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api) - fhss_structure->ws->synchronization_time)) && !force_synch) {
752+
if (((uint32_t)S_TO_US(fhss_structure->ws->min_synch_interval) > (fhss_structure->callbacks.read_timestamp(fhss_structure->fhss_api) - fhss_structure->ws->synchronization_time)) && !force_synch) {
753753
return 0;
754754
}
755755
platform_enter_critical();

0 commit comments

Comments
 (0)