From a2da7df0347bf4e420c2cd42ff3b8ef7cbd818be Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 18 Jul 2015 23:24:13 +0200 Subject: o Consistent ordering when storing the MAC address's bytes. --- include/ble/Bluetooth.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/ble/Bluetooth.h b/include/ble/Bluetooth.h index 6a974d5..e9916e9 100644 --- a/include/ble/Bluetooth.h +++ b/include/ble/Bluetooth.h @@ -55,13 +55,13 @@ public: class Mac { public: - Mac(uint8_t _0, uint8_t _1, uint8_t _2, uint8_t _3, uint8_t _4, uint8_t _5) { - bytes[0] = _0; - bytes[1] = _1; - bytes[2] = _2; - bytes[3] = _3; - bytes[4] = _4; + Mac(uint8_t _5, uint8_t _4, uint8_t _3, uint8_t _2, uint8_t _1, uint8_t _0) { bytes[5] = _5; + bytes[4] = _4; + bytes[3] = _3; + bytes[2] = _2; + bytes[1] = _1; + bytes[0] = _0; }; string str() const; @@ -70,7 +70,7 @@ public: bool operator!=(Mac &other) const; - void copy(uint8_t &_0, uint8_t &_1, uint8_t &_2, uint8_t &_3, uint8_t &_4, uint8_t &_5) const; + void copy(uint8_t &_5, uint8_t &_4, uint8_t &_3, uint8_t &_2, uint8_t &_1, uint8_t &_0) const; static Mac parseMac(string s); -- cgit v1.2.3