Merge pull request #475 from nuthub/master

Fix Beacons' MAC addresses conversion
This commit is contained in:
Verkehrsrot 2019-10-22 20:37:17 +02:00 committed by GitHub
commit a9e9e47acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ void printKey(const char *name, const uint8_t *key, uint8_t len, bool lsb) {
uint64_t macConvert(uint8_t *paddr) { uint64_t macConvert(uint8_t *paddr) {
uint64_t *mac; uint64_t *mac;
mac = (uint64_t *)paddr; mac = (uint64_t *)paddr;
return (__builtin_bswap64(*mac) >> 8); return (__builtin_bswap64(*mac) >> 16);
} }
bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) { bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {