diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-03 09:36:28 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-03 09:36:28 +1100 |
| commit | 3df4cc9e3de6af480d1ff78376a7d811c9270561 (patch) | |
| tree | 0b497dc40488f9c69677f31afc8104ec779bbb2b /src/drivers/include | |
| parent | 95618239e64d150ed2471820aa0758f72407d252 (diff) | |
| download | tangara-fw-3df4cc9e3de6af480d1ff78376a7d811c9270561.tar.gz | |
Make accessors in RelativeWheel const
Diffstat (limited to 'src/drivers/include')
| -rw-r--r-- | src/drivers/include/relative_wheel.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/include/relative_wheel.hpp b/src/drivers/include/relative_wheel.hpp index b5532a4c..88077d08 100644 --- a/src/drivers/include/relative_wheel.hpp +++ b/src/drivers/include/relative_wheel.hpp @@ -25,8 +25,8 @@ class RelativeWheel { auto Update() -> void; auto SetEnabled(bool) -> void; - auto is_clicking() -> bool; - auto ticks() -> std::int_fast16_t; + auto is_clicking() const -> bool; + auto ticks() const -> std::int_fast16_t; // Not copyable or movable. RelativeWheel(const RelativeWheel&) = delete; |
