Skip to content

Commit e09f0be

Browse files
zyczkapi-no
authored andcommitted
applications: nrf_desktop: switch to 64bit timestamp in ble_bond
Switch to 64bit timestamp using k_uptime_get API to calculate timestamp differences in ble_bond module. We do it in order to prevent overflows. Jira: NCSDK-34009 Signed-off-by: Jan Zyczkowski <[email protected]>
1 parent 5fa8980 commit e09f0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/nrf_desktop/src/modules/ble_bond.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ static bool click_event_handler(const struct click_event *event)
886886
}
887887

888888
if (likely(state != STATE_DISABLED)) {
889-
if ((k_uptime_get_32() < ON_START_CLICK_UPTIME_MAX) &&
889+
if ((k_uptime_get() < ON_START_CLICK_UPTIME_MAX) &&
890890
(event->click == CLICK_LONG)) {
891891
handle_click(ON_START_CLICK(event->click));
892892
} else {

0 commit comments

Comments
 (0)