Skip to content

Commit be06ecb

Browse files
author
Jarkko Paso
committed
FHSS WS: Fixed synch parent warning
Synch interval was used as signed because of the used S_TO_US macro
1 parent c4afedc commit be06ecb

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)