From 55183c8ff9774573e7a43175eb3f75fb558ce768 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 12 Oct 2021 23:25:42 -0700 Subject: Fix responses --- src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/protocol') 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); -- cgit v1.2.3