Bugfix: cycling sensors report wheel count as UINT32 - data type must be long, int is too small.

Also forgot to fix tests.

Fixes #810.
This commit is contained in:
Dennis Guse
2021-06-13 19:16:51 +02:00
parent 40188774b1
commit e9e48e4a79
4 changed files with 6 additions and 6 deletions
@@ -18,7 +18,7 @@ public class UintUtils {
throw new RuntimeException("a or b cannot be less than zero.");
}
if (a > UINT_MAX || b > UINT_MAX) {
throw new RuntimeException("a or b are outside of the allowed range." + a + " " + b);
throw new RuntimeException("a or b are outside of the allowed range.");
}
if (a >= b) {