Diff between b96925739d03066fd51a81a8aed81cf865f88aa5 and bb29d9a4ff7f1eb37fd8521efaf6965edc5b5ae3
Changed Files
| File | Additions | Deletions | Status |
| monitor/control.c | +2 | -2 | modified |
Full Patch
diff --git a/monitor/control.c b/monitor/control.c
index 159ba9d..3f5b990 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -210,7 +210,7 @@ static void mgmt_device_connected(uint16_t len, const void *buf)
return;
}
- flags = btohs(ev->flags);
+ flags = btohl(ev->flags);
ba2str(&ev->addr.bdaddr, str);
printf("@ Device Connected: %s (%d) flags 0x%4.4x\n",
@@ -357,7 +357,7 @@ static void mgmt_device_found(uint16_t len, const void *buf)
return;
}
- flags = btohs(ev->flags);
+ flags = btohl(ev->flags);
ba2str(&ev->addr.bdaddr, str);
printf("@ Device Found: %s (%d) rssi %d flags 0x%4.4x\n",