summaryrefslogtreecommitdiff
path: root/src/drivers/relative_wheel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/relative_wheel.cpp')
-rw-r--r--src/drivers/relative_wheel.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/drivers/relative_wheel.cpp b/src/drivers/relative_wheel.cpp
index f64d213d..4c9e19bb 100644
--- a/src/drivers/relative_wheel.cpp
+++ b/src/drivers/relative_wheel.cpp
@@ -13,12 +13,12 @@
namespace drivers {
-RelativeWheel::RelativeWheel(TouchWheel *touch)
- :touch_(touch),
- is_pressed_(false),
- is_first_read_(true),
- ticks_(0),
- last_angle_(0) {}
+RelativeWheel::RelativeWheel(TouchWheel* touch)
+ : touch_(touch),
+ is_pressed_(false),
+ is_first_read_(true),
+ ticks_(0),
+ last_angle_(0) {}
auto RelativeWheel::Update() -> void {
touch_->Update();
@@ -68,11 +68,10 @@ auto RelativeWheel::is_pressed() -> bool {
auto RelativeWheel::ticks() -> std::int_fast16_t {
int_fast16_t t = ticks_;
if (t != 0) {
- ESP_LOGI("teeks", "ticks %d", t);
+ ESP_LOGI("teeks", "ticks %d", t);
}
ticks_ = 0;
return t;
}
-
} // namespace drivers