def decode_endian(value_array, is_little_endian=True):
    """
    Return a 16-bit value from two 8-bit values, to the specified endianism.

    Args:
        value_array      (list): The two 8-bit values to be processed.
        is_little_endian (bool): Is the final value little endian or not. Default: True.

    Returns:
        int: The 16-bit value.
    """

    if is_little_endian is True: return value_array[0] + (value_array[1] << 8)
    return (value_array[0] << 8) + value_array[1]