aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorDavid Bergh <berghdavid@hotmail.com>2023-09-08 15:30:47 +0200
committerDavid Bergh <berghdavid@hotmail.com>2023-09-08 15:30:47 +0200
commitbb46ff66b74731dd7c7b2359017b0cd8c137824c (patch)
treecb24c5bf6bc57567abc67d18fbab60b06aeb2059 /src/main/java/org/traccar
parent6d8061f868ca142018581d38410dcff80256c9cd (diff)
downloadtrackermap-server-bb46ff66b74731dd7c7b2359017b0cd8c137824c.tar.gz
trackermap-server-bb46ff66b74731dd7c7b2359017b0cd8c137824c.tar.bz2
trackermap-server-bb46ff66b74731dd7c7b2359017b0cd8c137824c.zip
Use signed short for RSSI
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index eb0a80e05..3ee9d9732 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -551,7 +551,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x24:
case 0x25:
String wifiMAC = ByteBufUtil.hexDump(buf.readSlice(6));
- int wifiRSSI = buf.readUnsignedShortLE();
+ int wifiRSSI = buf.readShortLE();
network.addWifiAccessPoint(WifiAccessPoint.from(wifiMAC, wifiRSSI));
break;
case 0x0E:
@@ -563,7 +563,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
int stationMNC = buf.readUnsignedShortLE();
int stationLAC = buf.readUnsignedShortLE();
long stationID = buf.readUnsignedIntLE();
- int stationRX_LEVEL = buf.readUnsignedShortLE();
+ int stationRX_LEVEL = buf.readShortLE();
network.addCellTower(CellTower.from(stationMCC, stationMNC, stationLAC, stationID,
stationRX_LEVEL));
break;