From ddd591da1ce5d4b8dbbc473fc474a6bd5200ed56 Mon Sep 17 00:00:00 2001 From: ailurux Date: Wed, 5 Feb 2025 10:20:18 +1100 Subject: [PATCH] Fix issue with last touch wheel time not being initialised --- src/tangara/input/input_touch_wheel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tangara/input/input_touch_wheel.cpp b/src/tangara/input/input_touch_wheel.cpp index fba8a4cd..1aee6fae 100644 --- a/src/tangara/input/input_touch_wheel.cpp +++ b/src/tangara/input/input_touch_wheel.cpp @@ -54,7 +54,8 @@ TouchWheel::TouchWheel(drivers::NvsStorage& nvs, drivers::TouchWheel& wheel) is_scrolling_(false), threshold_(calculateThreshold(nvs.ScrollSensitivity())), is_first_read_(true), - last_angle_(0) {} + last_angle_(0), + last_wheel_touch_time_(0) {} auto TouchWheel::read(lv_indev_data_t* data) -> void { if (locked_) {