From 544c61bee4297d4467a35fc8abcd5c35f17f4158 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 14 Jan 2016 09:40:58 +1300 Subject: Switch Meiligao engine on and off commands --- src/org/traccar/protocol/MeiligaoProtocolEncoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/MeiligaoProtocolEncoder.java b/src/org/traccar/protocol/MeiligaoProtocolEncoder.java index e8c62e502..4aae12add 100644 --- a/src/org/traccar/protocol/MeiligaoProtocolEncoder.java +++ b/src/org/traccar/protocol/MeiligaoProtocolEncoder.java @@ -71,10 +71,10 @@ public class MeiligaoProtocolEncoder extends BaseProtocolEncoder { content.writeShort(((Number) attributes.get(Command.KEY_FREQUENCY)).intValue() / 10); return encodeContent(command.getDeviceId(), MSG_TRACK_BY_INTERVAL, content); case Command.TYPE_ENGINE_STOP: - content.writeByte(0x00); + content.writeByte(0x01); return encodeContent(command.getDeviceId(), MSG_OUTPUT_CONTROL, content); case Command.TYPE_ENGINE_RESUME: - content.writeByte(0x01); + content.writeByte(0x00); return encodeContent(command.getDeviceId(), MSG_OUTPUT_CONTROL, content); case Command.TYPE_MOVEMENT_ALARM: content.writeShort(((Number) attributes.get(Command.KEY_RADIUS)).intValue()); -- cgit v1.2.3