mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-15 05:30:03 +00:00
nimble/ll: Fix SyncInfo units when no offset is provided
If periodic advertising event is too far in future to be represented in SyncInfo, offset is set to 0 and units should also not be set.
This commit is contained in:
@@ -634,6 +634,7 @@ ble_ll_adv_put_syncinfo(struct ble_ll_adv_sm *advsm,
|
|||||||
units |= 0x40;
|
units |= 0x40;
|
||||||
} else {
|
} else {
|
||||||
offset = 0;
|
offset = 0;
|
||||||
|
units = 0x00;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user