From a4eee1d79fc9b9697ce8970601a0b590b28cc0d7 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Mon, 11 Dec 2023 16:28:31 -0800 Subject: [PATCH] fix(mouse): Fixes for logging. * Corrected logging for two-axis input timestamps. --- app/src/behaviors/behavior_input_two_axis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/behaviors/behavior_input_two_axis.c b/app/src/behaviors/behavior_input_two_axis.c index 0146df868ef2..028373c2f347 100644 --- a/app/src/behaviors/behavior_input_two_axis.c +++ b/app/src/behaviors/behavior_input_two_axis.c @@ -145,10 +145,10 @@ static void tick_work_cb(struct k_work *work) { const struct device *dev = data->dev; const struct behavior_input_two_axis_config *cfg = dev->config; - uint32_t timestamp = k_uptime_get(); + uint64_t timestamp = k_uptime_get(); - LOG_INF("tick start times: %lld %lld %lld", data->state.x.start_time, data->state.y.start_time, - timestamp); + LOG_INF("x start: %llu, y start: %llu, current timestamp: %llu", data->state.x.start_time, + data->state.y.start_time, timestamp); struct vector2d move = update_movement_2d(cfg, &data->state, timestamp);