From 44f0b1f5b7b575d38746f7a4f98beea336f963db Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 23 Jul 2019 08:31:14 -0700 Subject: Fix message splitting --- src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java index c4b29850d..ebc7e7c04 100644 --- a/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java @@ -243,7 +243,7 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder { } else { List positions = new LinkedList<>(); - for (String item : parser.next().split("$")) { + for (String item : parser.next().split("\\$")) { positions.add(decodePosition(deviceSession, item)); } return positions; -- cgit v1.2.3