aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AplicomProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-06 16:14:11 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-06 16:14:11 +1300
commit6652e4c3e23da63d4277caaca7f91e651793f503 (patch)
treeef8d12b439e5cd0f0b826aa1d465f5e4db7d0f51 /src/org/traccar/protocol/AplicomProtocolDecoder.java
parent814794126d232b11a67c06691ed5d5da6c32dd75 (diff)
downloadtrackermap-server-6652e4c3e23da63d4277caaca7f91e651793f503.tar.gz
trackermap-server-6652e4c3e23da63d4277caaca7f91e651793f503.tar.bz2
trackermap-server-6652e4c3e23da63d4277caaca7f91e651793f503.zip
Rename some of checksum methods
Diffstat (limited to 'src/org/traccar/protocol/AplicomProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java
index aa9dd57d1..c134a282e 100644
--- a/src/org/traccar/protocol/AplicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java
@@ -40,7 +40,7 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder {
private static final long IMEI_BASE_TC65I_V11 = 0x14143B4000000L;
private static boolean validateImei(long imei) {
- return Checksum.luhnChecksum(imei / 10) == imei % 10;
+ return Checksum.luhn(imei / 10) == imei % 10;
}
private static long imeiFromUnitId(long unitId) {