diff options
| author | Jacob Palecki <[email protected]> | 2020-07-24 16:23:53 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-24 16:23:53 -0700 |
| commit | 115615a4967808989a742fc57bd8426a46ab69bc (patch) | |
| tree | e99ad6dab6be8c0ac6650a5f1b0f4471b0192d11 /common/rawaccel-userspace.hpp | |
| parent | Merge branch 'PowerFix' into WrapperAndGrapher (diff) | |
| parent | Flip k and b as scale and exponent for power mode (diff) | |
| download | rawaccel-115615a4967808989a742fc57bd8426a46ab69bc.tar.xz rawaccel-115615a4967808989a742fc57bd8426a46ab69bc.zip | |
Merge branch 'PowerFix' into WrapperAndGrapher
Diffstat (limited to 'common/rawaccel-userspace.hpp')
| -rw-r--r-- | common/rawaccel-userspace.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rawaccel-userspace.hpp b/common/rawaccel-userspace.hpp index 259f2cb..e0e13b0 100644 --- a/common/rawaccel-userspace.hpp +++ b/common/rawaccel-userspace.hpp @@ -83,9 +83,9 @@ variables parse(int argc, char** argv) { (clipp::required("midpoint") & clipp::number("speed", accel_args.midpoint)) % "midpoint" ); auto pow_mode = "power accel mode:" % ( - clipp::command("power").set(accel_args.accel_mode, mode::power), - accel_var, - (clipp::option("scale") & clipp::number("num", accel_args.lim_exp)) % "scale factor" + clipp::command("power").set(accel_args.accel_mode, mode::power) >> [&] { accel_args.accel = 1; }, + (clipp::required("exponent") & clipp::number("num", accel_args.lim_exp)) % "exponent", + (clipp::option("scale") & clipp::number("num", accel_args.accel)) % "scale factor" ); auto accel_mode_exclusive = (lin_mode | classic_mode | nat_mode | log_mode | sig_mode | pow_mode); |