aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-09 18:29:35 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-09 18:29:35 -0700
commit53f1be38dc55032e73e1aae659bb94dda6414d31 (patch)
treec8ec2afbba7616bb0f457a9df31d2f3dc6d7608f /src/main/java/org/traccar/protocol
parentb017ab22e2f612aa19d0bd62581b6e889a142dfa (diff)
downloadtrackermap-server-53f1be38dc55032e73e1aae659bb94dda6414d31.tar.gz
trackermap-server-53f1be38dc55032e73e1aae659bb94dda6414d31.tar.bz2
trackermap-server-53f1be38dc55032e73e1aae659bb94dda6414d31.zip
Fix GV355CEU battery decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java
index 775e98401..8edce9346 100644
--- a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java
@@ -974,6 +974,9 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
if (model.startsWith("GV") && !model.startsWith("GV6")) {
position.set(Position.PREFIX_ADC + 2, v[index++].isEmpty() ? null : Integer.parseInt(v[index - 1]) * 0.001);
}
+ if (model.startsWith("GV355CEU")) {
+ index += 1; // reserved
+ }
position.set(Position.KEY_BATTERY_LEVEL, v[index++].isEmpty() ? null : Integer.parseInt(v[index - 1]));
if (model.startsWith("GL5")) {