aboutsummaryrefslogtreecommitdiff
path: root/ble/LinuxBluetooth.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-07-18 23:24:13 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-07-18 23:24:13 +0200
commita2da7df0347bf4e420c2cd42ff3b8ef7cbd818be (patch)
tree5d1b6b3e9553acae26e6df1e6c754faad18c9d65 /ble/LinuxBluetooth.cpp
parent650fb016ce36cfda2e8073764196655ee6a50567 (diff)
downloadble-toys-a2da7df0347bf4e420c2cd42ff3b8ef7cbd818be.tar.gz
ble-toys-a2da7df0347bf4e420c2cd42ff3b8ef7cbd818be.tar.bz2
ble-toys-a2da7df0347bf4e420c2cd42ff3b8ef7cbd818be.tar.xz
ble-toys-a2da7df0347bf4e420c2cd42ff3b8ef7cbd818be.zip
o Consistent ordering when storing the MAC address's bytes.
Diffstat (limited to 'ble/LinuxBluetooth.cpp')
-rw-r--r--ble/LinuxBluetooth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ble/LinuxBluetooth.cpp b/ble/LinuxBluetooth.cpp
index d48bfcd..0c6c387 100644
--- a/ble/LinuxBluetooth.cpp
+++ b/ble/LinuxBluetooth.cpp
@@ -107,7 +107,7 @@ string errnoAsString() {
// -----------------------------------------------------------------------
Mac parseMac(bdaddr_t &a) {
- return Mac(a.b[0], a.b[1], a.b[2], a.b[3], a.b[4], a.b[5]);
+ return Mac(a.b[5], a.b[4], a.b[3], a.b[2], a.b[1], a.b[0]);
}
// -----------------------------------------------------------------------