aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index 7ad91a807..635f7d67b 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -77,7 +77,10 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
id += d2;
}
- return id + Crc.luhnChecksum(id);
+ if (id.length() == 14) {
+ id += Crc.luhnChecksum(id); // IMEI checksum
+ }
+ return id;
}
@Override