aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-06-27 22:43:06 -0700
committerAnton Tananaev <anton@traccar.org>2023-06-27 22:43:06 -0700
commit3952b3445d96d91f87d6a427ba10a86907cb0fea (patch)
treea68b886734d3d11842a514d317a0df514b04dab0
parent1b899329364619cbdc4213e2fd065955a94f5c6c (diff)
downloadtrackermap-server-3952b3445d96d91f87d6a427ba10a86907cb0fea.tar.gz
trackermap-server-3952b3445d96d91f87d6a427ba10a86907cb0fea.tar.bz2
trackermap-server-3952b3445d96d91f87d6a427ba10a86907cb0fea.zip
Fix Xexun2 wifi signal
-rw-r--r--src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
index 46e3dd118..0e3c44e12 100644
--- a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
@@ -156,7 +156,7 @@ public class Xexun2ProtocolDecoder extends BaseProtocolDecoder {
for (int j = 0; j < wifiCount; j++) {
String mac = ByteBufUtil.hexDump(buf.readSlice(6)).replaceAll("(..)", "$1:");
network.addWifiAccessPoint(WifiAccessPoint.from(
- mac.substring(0, mac.length() - 1), buf.readUnsignedByte()));
+ mac.substring(0, mac.length() - 1), buf.readByte()));
}
}
if (BitUtil.check(positionMask, 2)) {