From 7cb94b3b5b307129cbbdce30bbb77ace6cbb1bd3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 7 Jul 2020 20:18:46 -0700 Subject: Decode missing alerts --- src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java index 5472b272d..451b9ba32 100644 --- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java @@ -181,12 +181,14 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder { return Position.ALARM_SHOCK; case 16: return Position.ALARM_ACCIDENT; + case 40: + return Position.ALARM_POWER_RESTORED; + case 41: + return Position.ALARM_POWER_CUT; case 46: return Position.ALARM_ACCELERATION; case 47: return Position.ALARM_BRAKING; - case 48: - return Position.ALARM_ACCIDENT; case 50: return Position.ALARM_JAMMING; default: -- cgit v1.2.3