summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-09-23 22:20:29 -0400
committera1xd <[email protected]>2021-09-23 22:20:29 -0400
commit024beb2b82ab3a0255a61c949fe408fd3470aed5 (patch)
tree5dac5517f1a9997526bedfe7df899d458bb6b4a2 /common
parentMerge pull request #107 from a1xd/1.5.0-fix (diff)
downloadrawaccel-024beb2b82ab3a0255a61c949fe408fd3470aed5.tar.xz
rawaccel-024beb2b82ab3a0255a61c949fe408fd3470aed5.zip
allow lp norm in range (0, 2)
Diffstat (limited to 'common')
-rw-r--r--common/rawaccel-validate.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rawaccel-validate.hpp b/common/rawaccel-validate.hpp
index a03f56a..b724bf2 100644
--- a/common/rawaccel-validate.hpp
+++ b/common/rawaccel-validate.hpp
@@ -169,8 +169,8 @@ namespace rawaccel {
error("directional multipliers must be positive");
}
- if (args.dom_args.lp_norm < 2) {
- error("Lp norm is less than 2 (default=2)");
+ if (args.dom_args.lp_norm <= 0) {
+ error("Lp norm must be positive (default=2)");
}
if (args.range_weights.x <= 0 || args.range_weights.y <= 0) {