aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-20 20:33:19 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-20 20:33:19 -0800
commit0374520d2e43745de2653a9f838cb423bca1aff2 (patch)
treef9237f8627355a8938c005695405fc3bff540bfc /src/org/traccar
parent699c1568828a10be57879069c97bf9b27bdc7d07 (diff)
downloadtraccar-server-0374520d2e43745de2653a9f838cb423bca1aff2.tar.gz
traccar-server-0374520d2e43745de2653a9f838cb423bca1aff2.tar.bz2
traccar-server-0374520d2e43745de2653a9f838cb423bca1aff2.zip
Fix cell decoding
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/SuntechProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolDecoder.java b/src/org/traccar/protocol/SuntechProtocolDecoder.java
index d94bdb5c2..922431021 100644
--- a/src/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2013 - 2019 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -268,7 +268,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
position.setTime(dateFormat.parse(values[index++] + values[index++]));
if (!protocol.equals("ST500")) {
- int cid = Integer.parseInt(values[index++], 16);
+ long cid = Long.parseLong(values[index++], 16);
if (protocol.equals("ST600")) {
position.setNetwork(new Network(CellTower.from(
Integer.parseInt(values[index++]), Integer.parseInt(values[index++]),