aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-18 02:28:16 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-18 02:28:16 +1200
commit3aaaa1de76612e26c6d25f930d94fdf4ee810d7d (patch)
tree30c4fca8cb7e1e4e22d944f3d58df2168ebb4a2d /src/org/traccar/protocol
parentca074b8dea7209293baf8513dfcf36e8d504f69b (diff)
downloadtraccar-server-3aaaa1de76612e26c6d25f930d94fdf4ee810d7d.tar.gz
traccar-server-3aaaa1de76612e26c6d25f930d94fdf4ee810d7d.tar.bz2
traccar-server-3aaaa1de76612e26c6d25f930d94fdf4ee810d7d.zip
Fix GT06 encoder unit test
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolEncoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolEncoder.java b/src/org/traccar/protocol/Gt06ProtocolEncoder.java
index c20e1108f..7298f0ff6 100644
--- a/src/org/traccar/protocol/Gt06ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolEncoder.java
@@ -22,7 +22,6 @@ import org.traccar.Context;
import org.traccar.helper.Checksum;
import org.traccar.helper.Log;
import org.traccar.model.Command;
-import org.traccar.model.Device;
import java.nio.charset.StandardCharsets;
@@ -56,7 +55,7 @@ public class Gt06ProtocolEncoder extends BaseProtocolEncoder {
@Override
protected Object encodeCommand(Command command) {
- boolean alternative = Context.getDeviceManager().lookupAttributeBoolean(
+ boolean alternative = Context.getIdentityManager().lookupAttributeBoolean(
command.getDeviceId(), "gt06.alternative", false, true);
switch (command.getType()) {