summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/rawaccel.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp
index 52402d5..9a072d1 100644
--- a/common/rawaccel.hpp
+++ b/common/rawaccel.hpp
@@ -99,7 +99,7 @@ struct accel_function {
break;
case mode::sigmoid: accel_val = k / (exp(-b * (speed - m)) + 1);
break;
- case mode::power: accel_val = b < 1 ? 0 : pow(speed, b*k) - 1;
+ case mode::power: accel_val = (speed_offset > 0 && speed < 1) ? 0 : pow(speed, b*k) - 1;
break;
default:
break;