mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
Fix service classes decoding
This commit is contained in:
parent
7021f61d99
commit
1670b1237d
@ -666,7 +666,7 @@ static void cmd_class(int ctl, int hdev, char *opt)
|
||||
printf("\tService Classes: ");
|
||||
if (cls[2]) {
|
||||
int first = 1;
|
||||
for (s = 0; s < sizeof(*services); s++)
|
||||
for (s = 0; s < (sizeof(services) / sizeof(*services)); s++)
|
||||
if (cls[2] & (1 << s)) {
|
||||
if (!first)
|
||||
printf(", ");
|
||||
|
Loading…
Reference in New Issue
Block a user