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:
Szymon Janc
2020-02-04 17:23:17 +01:00
parent 1c561c316f
commit 643eff996c
+1
View File
@@ -634,6 +634,7 @@ ble_ll_adv_put_syncinfo(struct ble_ll_adv_sm *advsm,
units |= 0x40;
} else {
offset = 0;
units = 0x00;
}
}