aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorDavid Bergh <berghdavid@hotmail.com>2023-09-13 10:50:59 +0200
committerDavid Bergh <berghdavid@hotmail.com>2023-09-13 10:50:59 +0200
commitdf28582395349cfc71cfdea1baf1a7683f804110 (patch)
treeb77dc3de9642213d80b73ca8fa074cd11859e6f1 /src/main
parent2b2eb27834968addc35ec3e4be1be88a0f8806ac (diff)
downloadtrackermap-server-df28582395349cfc71cfdea1baf1a7683f804110.tar.gz
trackermap-server-df28582395349cfc71cfdea1baf1a7683f804110.tar.bz2
trackermap-server-df28582395349cfc71cfdea1baf1a7683f804110.zip
Fix mac address formatting
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index 2e786070f..8a1e14834 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -550,9 +550,9 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x23:
case 0x24:
case 0x25:
- String wifiMAC = ByteBufUtil.hexDump(buf.readSlice(6)).replaceAll("(..)", "$1:");
- int wifiRSSI = buf.readShortLE();
- network.addWifiAccessPoint(WifiAccessPoint.from(wifiMAC, wifiRSSI));
+ String wifiMac = ByteBufUtil.hexDump(buf.readSlice(6)).replaceAll("(..)", "$1:");
+ network.addWifiAccessPoint(WifiAccessPoint.from(wifiMac.substring(0, wifiMac.length() - 1),
+ buf.readShortLE()));
break;
case 0x0E:
case 0x0F: