Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39e6b52d authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

[Bass] Fix Presentation Delay byte shift

Bug: 316244219
Bug: 316005152
Test: atest BassClientStateMachineTest
Change-Id: Iaa648ee0152d061e144399981e53716b72a678e8
parent 1a30ed09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -587,7 +587,7 @@ public class BassClientStateMachine extends StateMachine {
        metaData.setSourceDevice(device, device.getAddressType());
        byte[] arrayPresentationDelay = baseData.getLevelOne().presentationDelay;
        int presentationDelay = (int) ((arrayPresentationDelay[2] & 0xff) << 16
                | (arrayPresentationDelay[1] & 0xff)
                | (arrayPresentationDelay[1] & 0xff) << 8
                | (arrayPresentationDelay[0] & 0xff));
        metaData.setPresentationDelayMicros(presentationDelay);
        PeriodicAdvertisementResult result =