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

Commit a048bc1a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Bass: Fix reversed broadcast code"

parents 92675f77 8e2502ab
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1403,10 +1403,8 @@ public class BassClientStateMachine extends StateMachine {
                    + recvState.getSourceId());
            return null;
        }
        // Can Keep as ASCII as is
        String reversePIN = new StringBuffer(new String(metaData.getBroadcastCode()))
                .reverse().toString();
        byte[] actualPIN = reversePIN.getBytes();
        // Broadcast Code
        byte[] actualPIN = metaData.getBroadcastCode();
        if (actualPIN == null) {
            Log.e(TAG, "actual PIN is null");
            return null;