diff options
-rw-r--r-- | src/org/traccar/protocol/MeiligaoProtocolDecoder.java | 5 |
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 |