@@ -1359,12 +1359,10 @@ static void payload_count_lazy(struct lll_conn_iso_stream *cis_lll, uint16_t laz
1359
1359
u = cis_lll -> nse - ((cis_lll -> nse / cis_lll -> tx .bn ) *
1360
1360
(cis_lll -> tx .bn - 1U -
1361
1361
(payload_count % cis_lll -> tx .bn )));
1362
- while (((((cis_lll -> tx .payload_count / cis_lll -> tx .bn ) + cis_lll -> tx .ft ) <
1363
- (cis_lll -> event_count + 1U )) ||
1364
- ((((cis_lll -> tx .payload_count / cis_lll -> tx .bn ) + cis_lll -> tx .ft ) ==
1365
- (cis_lll -> event_count + 1U )) && (u < (cis_lll -> nse + 1U )))) &&
1366
- ((cis_lll -> tx .payload_count / cis_lll -> tx .bn ) <
1367
- cis_lll -> event_count )) {
1362
+ while ((((cis_lll -> tx .payload_count / cis_lll -> tx .bn ) + cis_lll -> tx .ft ) <
1363
+ cis_lll -> event_count ) ||
1364
+ ((((cis_lll -> tx .payload_count / cis_lll -> tx .bn ) + cis_lll -> tx .ft ) ==
1365
+ cis_lll -> event_count ) && (u < cis_lll -> nse ))) {
1368
1366
/* sn and nesn are 1-bit, only Least Significant bit is needed */
1369
1367
cis_lll -> sn ++ ;
1370
1368
cis_lll -> tx .bn_curr ++ ;
@@ -1391,12 +1389,10 @@ static void payload_count_lazy(struct lll_conn_iso_stream *cis_lll, uint16_t laz
1391
1389
u = cis_lll -> nse - ((cis_lll -> nse / cis_lll -> rx .bn ) *
1392
1390
(cis_lll -> rx .bn - 1U -
1393
1391
(payload_count % cis_lll -> rx .bn )));
1394
- while (((((cis_lll -> rx .payload_count / cis_lll -> rx .bn ) + cis_lll -> rx .ft ) <
1395
- (cis_lll -> event_count + 1U )) ||
1396
- ((((cis_lll -> rx .payload_count / cis_lll -> rx .bn ) + cis_lll -> rx .ft ) ==
1397
- (cis_lll -> event_count + 1U )) && (u <= (cis_lll -> nse + 1U )))) &&
1398
- ((cis_lll -> rx .payload_count / cis_lll -> rx .bn ) <
1399
- cis_lll -> event_count )) {
1392
+ while ((((cis_lll -> rx .payload_count / cis_lll -> rx .bn ) + cis_lll -> rx .ft ) <
1393
+ cis_lll -> event_count ) ||
1394
+ ((((cis_lll -> rx .payload_count / cis_lll -> rx .bn ) + cis_lll -> rx .ft ) ==
1395
+ cis_lll -> event_count ) && (u <= cis_lll -> nse ))) {
1400
1396
/* sn and nesn are 1-bit, only Least Significant bit is needed */
1401
1397
cis_lll -> nesn ++ ;
1402
1398
cis_lll -> rx .bn_curr ++ ;
0 commit comments