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

Commit c2f9e2d0 authored by Chris Manton's avatar Chris Manton Committed by Android Git Automerger
Browse files

am acfd7af5: Bluetooth: Properly initialize UART fds

* commit 'acfd7af5':
  Bluetooth: Properly initialize UART fds
parents 1d37bfe1 acfd7af5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -281,9 +281,12 @@ bool userial_open(userial_port_t port) {

    // Call in to the vendor-specific library to open the serial port.
    int fd_array[CH_MAX];
    for (int i = 0; i < CH_MAX; i++)
        fd_array[i] = -1;

    int num_ports = vendor_send_command(BT_VND_OP_USERIAL_OPEN, &fd_array);

    if (num_ports > 1) {
    if (num_ports != 1) {
        ALOGE("%s opened wrong number of ports: got %d, expected 1.", __func__, num_ports);
        goto error;
    }