aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-31 11:25:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-31 11:25:52 -0700
commit54bcbdc6ed9aec8fe5bdfa76dfc7698f7504df84 (patch)
tree47e774363eaa14b69572ea44252f4f12d1212fc6 /src/main/java
parent91584d16eb8585d302d52b76058b7cc5c6b74d4f (diff)
downloadtrackermap-server-54bcbdc6ed9aec8fe5bdfa76dfc7698f7504df84.tar.gz
trackermap-server-54bcbdc6ed9aec8fe5bdfa76dfc7698f7504df84.tar.bz2
trackermap-server-54bcbdc6ed9aec8fe5bdfa76dfc7698f7504df84.zip
Rename variable
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index 88b7d12c8..8a58ebc5e 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -204,11 +204,11 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.PREFIX_ADC + i, parser.nextHexInt());
}
- String deviceModel = getCacheManager().getObject(Device.class, deviceSession.getDeviceId()).getModel();
- if (deviceModel == null) {
- deviceModel = "";
+ String model = getCacheManager().getObject(Device.class, deviceSession.getDeviceId()).getModel();
+ if (model == null) {
+ model = "";
}
- switch (deviceModel.toUpperCase()) {
+ switch (model.toUpperCase()) {
case "MVT340":
case "MVT380":
position.set(Position.KEY_BATTERY, parser.nextHexInt() * 3.0 * 2.0 / 1024.0);