aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-06-12 19:33:56 +0200
committerMatjaž Črnko <m.crnko@txt.si>2023-06-12 19:33:56 +0200
commitd6bc465b25f4be9c15342395c12fa73198da0842 (patch)
treed4bd04932f4f999894fedeeea6d56fcfd6b16777 /src/main
parent3e5447de31091bd9908a5d960a10ce52d1fd42f2 (diff)
downloadtrackermap-server-d6bc465b25f4be9c15342395c12fa73198da0842.tar.gz
trackermap-server-d6bc465b25f4be9c15342395c12fa73198da0842.tar.bz2
trackermap-server-d6bc465b25f4be9c15342395c12fa73198da0842.zip
Ruptela - correctly decode the input prefixes
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index d86476f9a..c1fc95e34 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -98,19 +98,19 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
case 3:
case 4:
case 5:
- position.set("di" + (id - 1), readValue(buf, length, false));
+ position.set(Position.PREFIX_IN + (id - 1), readValue(buf, length, false));
break;
case 20:
- position.set("ai3", readValue(buf, length, false));
+ position.set(Position.PREFIX_ADC + 3, readValue(buf, length, false));
break;
case 21:
- position.set("ai4", readValue(buf, length, false));
+ position.set(Position.PREFIX_ADC + 4, readValue(buf, length, false));
break;
case 22:
- position.set("ai1", readValue(buf, length, false));
+ position.set(Position.PREFIX_ADC + 1, readValue(buf, length, false));
break;
case 23:
- position.set("ai2", readValue(buf, length, false));
+ position.set(Position.PREFIX_ADC + 2, readValue(buf, length, false));
break;
case 29:
position.set(Position.KEY_POWER, readValue(buf, length, false));