aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/Crc.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/Crc.java')
-rw-r--r--src/org/traccar/helper/Crc.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Crc.java b/src/org/traccar/helper/Crc.java
index 418ec3132..522a25403 100644
--- a/src/org/traccar/helper/Crc.java
+++ b/src/org/traccar/helper/Crc.java
@@ -172,7 +172,7 @@ public class Crc {
remain /= 10;
}
- return 10 - (checksum % 10);
+ return (10 - (checksum % 10)) % 10;
}
}