public static Integer calculateBlockAcknowledgement(final Integer blockAck, final int segO) {
        int ack = 0;
        if (blockAck == null) {
            ack |= 1 << segO;
            MeshLogger.verbose(TAG, "Block ack value: " + Integer.toString(ack, 16));
            return ack;
        } else {
            ack = blockAck;
            ack |= 1 << segO;
            MeshLogger.verbose(TAG, "Block ack value: " + Integer.toString(ack, 16));
            return ack;
        }
    }
Calculates the block acknowledgement payload.
<p>
This method will set the segO bit to 1
</p>

@param blockAck block acknowledgement payload to be sent
@param segO     segment index
mesh/src/main/java/no/nordicsemi/android/mesh/control/BlockAcknowledgementMessage.java