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

Commit 3822ed7f authored by Yuyang Huang's avatar Yuyang Huang Committed by Gerrit Code Review
Browse files

Merge "Fix ASHA to LE audio"

parents 0e96f519 9702d61a
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -322,16 +322,18 @@ class HearingAidImpl : public HearingAid {
  void IsoTrafficEventCb(bool is_active) {
    if (is_active) {
      is_iso_running = true;
      needs_parameter_update = true;
    } else {
      is_iso_running = false;
    }
    LOG_INFO("is_iso_running: %d, needs_parameter_update: %d", is_iso_running,
             needs_parameter_update);
    if (needs_parameter_update) {
      for (auto& device : hearingDevices.devices) {
        if (device.conn_id != 0) {
          device.connection_update_status = STARTED;
          device.requested_connection_interval =
              UpdateBleConnParams(device.address);
            return;
          }
        }
      }
    }