diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-12 23:25:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-12 23:25:42 -0700 |
commit | 55183c8ff9774573e7a43175eb3f75fb558ce768 (patch) | |
tree | 51d741556fe861a1fd6cd32362919b8b6bd6cc08 | |
parent | 68c28833f6298e2f3d7dd53197fe16880cbb99be (diff) | |
download | traccar-server-55183c8ff9774573e7a43175eb3f75fb558ce768.tar.gz traccar-server-55183c8ff9774573e7a43175eb3f75fb558ce768.tar.bz2 traccar-server-55183c8ff9774573e7a43175eb3f75fb558ce768.zip |
Fix responses
-rw-r--r-- | src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java index 0f54cbd87..93acdbf2b 100644 --- a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java @@ -136,11 +136,12 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { return null; } - if (type != MSG_GPS && type != MSG_GPS_2 && type != MSG_ALARM) { + boolean positionType = type == MSG_GPS || type == MSG_GPS_2 || type == MSG_ALARM || type == MSG_ALARM_2; + if (!positionType) { sendResponse(channel, header, type, index, imei, 0); } - if (type == MSG_GPS || type == MSG_GPS_2 || type == MSG_ALARM || type == MSG_ALARM_2) { + if (positionType) { return decodePosition(channel, deviceSession, buf, type, index, imei); |