Skip to content

Commit

Permalink
fix(mouse): Fixes for logging.
Browse files Browse the repository at this point in the history
* Corrected logging for two-axis input timestamps.
  • Loading branch information
petejohanson committed Dec 12, 2023
1 parent 13e0b1a commit 5bc706a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/behaviors/behavior_input_two_axis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5bc706a

Please sign in to comment.