diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2022-01-04 22:09:43 +0100 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2022-01-04 22:09:43 +0100 |
commit | c21626223cd0c480725d8057a2cd4bf2b9d7e0b3 (patch) | |
tree | 7d432d6387c0dd1d0a6da88b35f84e635dc8642d /src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java | |
parent | 1a32d6b9b7253716d5927200db12d287b134ee26 (diff) | |
download | trackermap-server-c21626223cd0c480725d8057a2cd4bf2b9d7e0b3.tar.gz trackermap-server-c21626223cd0c480725d8057a2cd4bf2b9d7e0b3.tar.bz2 trackermap-server-c21626223cd0c480725d8057a2cd4bf2b9d7e0b3.zip |
fix: Totem - refactor formatContent so that it does not use non-static formatCommand function anymore.
Diffstat (limited to 'src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/TotemProtocolSmsEncoder.java | 5 |
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)); } } |