aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java b/src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java
index 28180b33b..8656f8a5c 100644
--- a/src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java
+++ b/src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java
@@ -16,10 +16,11 @@
*/
package org.traccar.protocol;
+import org.traccar.StringProtocolEncoder;
import org.traccar.model.Command;
import org.traccar.Protocol;
-public class TotemProtocolSmsEncoder extends TotemProtocolEncoder {
+public class TotemProtocolSmsEncoder extends StringProtocolEncoder {
public TotemProtocolSmsEncoder(Protocol protocol) {
super(protocol);
@@ -30,7 +31,7 @@ public class TotemProtocolSmsEncoder extends TotemProtocolEncoder {
initDevicePassword(command, "000000");
- return String.format("*%s#", super.getCommandString(command));
+ return String.format("*%s#", TotemProtocolEncoder.formatContent(command));
}
}