Diff between 020ef16431b0776075884ca9d007002311296146 and e935b6578369ae8a77e47c1c97845ccf33360078
Changed Files
| File | Additions | Deletions | Status |
| lib/bluetooth.c | +1 | -5 | modified |
Full Patch
diff --git a/lib/bluetooth.c b/lib/bluetooth.c
index 875119b..d064f9e 100644
--- a/lib/bluetooth.c
+++ b/lib/bluetooth.c
@@ -109,11 +109,7 @@ int str2ba(const char *str, bdaddr_t *ba)
int ba2oui(const bdaddr_t *ba, char *str)
{
- uint8_t b[6];
-
- baswap((bdaddr_t *) b, ba);
-
- return sprintf(str, "%2.2X-%2.2X-%2.2X", b[0], b[1], b[2]);
+ return sprintf(str, "%2.2X-%2.2X-%2.2X", ba->b[5], ba->b[4], ba->b[3]);
}
int bachk(const char *str)