diff options
| author | a1xd <[email protected]> | 2021-04-01 18:33:00 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-01 18:33:00 -0400 |
| commit | e9866f27d78d9909fd4639cbd14a54b8ad5c2ec1 (patch) | |
| tree | 1254f1db0dfd39d76c20a1907380ecbb60f86ab4 /common/rawaccel-validate.hpp | |
| parent | add flag to negate device match (diff) | |
| download | rawaccel-e9866f27d78d9909fd4639cbd14a54b8ad5c2ec1.tar.xz rawaccel-e9866f27d78d9909fd4639cbd14a54b8ad5c2ec1.zip | |
driver - apply accel disregarding num packets
add setting for max time threshold
Diffstat (limited to 'common/rawaccel-validate.hpp')
| -rw-r--r-- | common/rawaccel-validate.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rawaccel-validate.hpp b/common/rawaccel-validate.hpp index b9ee2af..a02324b 100644 --- a/common/rawaccel-validate.hpp +++ b/common/rawaccel-validate.hpp @@ -162,6 +162,10 @@ namespace rawaccel { error("minimum time"" must be positive"); } + if (args.time_max < args.time_min) { + error("max time is less than min time"); + } + return ret; } |