summaryrefslogtreecommitdiff
path: root/src/tangara/input
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2025-02-05 10:20:18 +1100
committerailurux <ailuruxx@gmail.com>2025-02-05 10:20:18 +1100
commitddd591da1ce5d4b8dbbc473fc474a6bd5200ed56 (patch)
treeeeb42d5dd4fd211a361b9d7f242598e9bb97dcc6 /src/tangara/input
parent813db15da84ee82066564b51f83be451cf121a00 (diff)
downloadtangara-fw-ddd591da1ce5d4b8dbbc473fc474a6bd5200ed56.tar.gz
Fix issue with last touch wheel time not being initialised
Diffstat (limited to 'src/tangara/input')
-rw-r--r--src/tangara/input/input_touch_wheel.cpp3
1 files changed, 2 insertions, 1 deletions
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_) {