diff options
Diffstat (limited to 'common/accel-union.hpp')
| -rw-r--r-- | common/accel-union.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/accel-union.hpp b/common/accel-union.hpp index c63a9cc..7a6b173 100644 --- a/common/accel-union.hpp +++ b/common/accel-union.hpp @@ -95,10 +95,10 @@ namespace rawaccel { }, *this); } - double apply(double speed) const + double apply(double speed, double weight = 1) const { return visit_accel([=](auto&& impl) { - return impl(speed); + return apply_weighted(impl, speed, weight); }, *this); } |