fix(mouse): Fixes for logging.
* Corrected logging for two-axis input timestamps.
This commit is contained in:
parent
4e53004502
commit
77acca1981
1 changed files with 3 additions and 3 deletions
|
@ -145,10 +145,10 @@ static void tick_work_cb(struct k_work *work) {
|
||||||
const struct device *dev = data->dev;
|
const struct device *dev = data->dev;
|
||||||
const struct behavior_input_two_axis_config *cfg = dev->config;
|
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,
|
LOG_INF("x start: %llu, y start: %llu, current timestamp: %llu", data->state.x.start_time,
|
||||||
timestamp);
|
data->state.y.start_time, timestamp);
|
||||||
|
|
||||||
struct vector2d move = update_movement_2d(cfg, &data->state, timestamp);
|
struct vector2d move = update_movement_2d(cfg, &data->state, timestamp);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue