diff options
| author | ailurux <ailuruxx@gmail.com> | 2025-02-05 10:20:18 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2025-02-05 10:20:18 +1100 |
| commit | ddd591da1ce5d4b8dbbc473fc474a6bd5200ed56 (patch) | |
| tree | eeb42d5dd4fd211a361b9d7f242598e9bb97dcc6 /src | |
| parent | 813db15da84ee82066564b51f83be451cf121a00 (diff) | |
| download | tangara-fw-ddd591da1ce5d4b8dbbc473fc474a6bd5200ed56.tar.gz | |
Fix issue with last touch wheel time not being initialised
Diffstat (limited to 'src')
| -rw-r--r-- | src/tangara/input/input_touch_wheel.cpp | 3 |
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_) { |
