diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-03-19 23:12:50 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-03-19 23:12:50 +1300 |
commit | 57a7b6beaade9a51690d0cc89149eca0dea8294a (patch) | |
tree | 341d468c1c0ec30fc6206cc382f67f2cf6a185c9 /src/org/traccar/ServerManager.java | |
parent | 289609b483d0b6188f8536f692363eb91e38288c (diff) | |
download | trackermap-server-57a7b6beaade9a51690d0cc89149eca0dea8294a.tar.gz trackermap-server-57a7b6beaade9a51690d0cc89149eca0dea8294a.tar.bz2 trackermap-server-57a7b6beaade9a51690d0cc89149eca0dea8294a.zip |
Fix Noran decoder (fix #610)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 7505561e9..4e5b283d4 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -974,12 +974,14 @@ public class ServerManager { private void initNoranServer(String protocol) throws SQLException { if (isProtocolEnabled(properties, protocol)) { - serverList.add(new TrackerServer(this, new ConnectionlessBootstrap(), protocol) { + TrackerServer server = new TrackerServer(this, new ConnectionlessBootstrap(), protocol) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("objectDecoder", new NoranProtocolDecoder(ServerManager.this)); } - }); + }; + server.setEndianness(ByteOrder.LITTLE_ENDIAN); + serverList.add(server); } } |