aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-01-30 17:35:37 -0800
committerAnton Tananaev <anton@traccar.org>2024-01-30 17:35:37 -0800
commit5c1a520850acced42cf81b3974134067182b6a99 (patch)
treee4312914d90586f3925f50a9119230cc38e4c670 /src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
parentb7d405e9d5cc64b88dfd09cd43d621338f550d68 (diff)
downloadtrackermap-server-5c1a520850acced42cf81b3974134067182b6a99.tar.gz
trackermap-server-5c1a520850acced42cf81b3974134067182b6a99.tar.bz2
trackermap-server-5c1a520850acced42cf81b3974134067182b6a99.zip
Fix Ruptela unsigned parameters
Diffstat (limited to 'src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index 402262348..e1efb5757 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -138,10 +138,10 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_DEVICE_TEMP, readValue(buf, length, true));
break;
case 39:
- position.set(Position.KEY_ENGINE_LOAD, readValue(buf, length, true));
+ position.set(Position.KEY_ENGINE_LOAD, readValue(buf, length, false));
break;
case 65:
- position.set(Position.KEY_ODOMETER, readValue(buf, length, true));
+ position.set(Position.KEY_ODOMETER, readValue(buf, length, false));
break;
case 74:
position.set(Position.PREFIX_TEMP + 3, readValue(buf, length, true) * 0.1);
@@ -157,16 +157,16 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
}
break;
case 94:
- position.set(Position.KEY_RPM, readValue(buf, length, true) * 0.25);
+ position.set(Position.KEY_RPM, readValue(buf, length, false) * 0.25);
break;
case 95:
- position.set(Position.KEY_OBD_SPEED, readValue(buf, length, true));
+ position.set(Position.KEY_OBD_SPEED, readValue(buf, length, false));
break;
case 98:
- position.set(Position.KEY_FUEL_LEVEL, readValue(buf, length, true) * 100 / 255.0);
+ position.set(Position.KEY_FUEL_LEVEL, readValue(buf, length, false) * 100 / 255.0);
break;
case 100:
- position.set(Position.KEY_FUEL_CONSUMPTION, readValue(buf, length, true) / 20.0);
+ position.set(Position.KEY_FUEL_CONSUMPTION, readValue(buf, length, false) / 20.0);
break;
case 134:
if (readValue(buf, length, false) > 0) {
@@ -226,7 +226,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
}
break;
case 645:
- position.set(Position.KEY_OBD_ODOMETER, readValue(buf, length, true) * 1000);
+ position.set(Position.KEY_OBD_ODOMETER, readValue(buf, length, false) * 1000);
break;
case 758:
if (readValue(buf, length, false) == 1) {