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

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

Merge "hearing_aid: Fix double CoC creation"

parents 85e410c5 f6a8b15e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -868,8 +868,10 @@ class HearingAidImpl : public HearingAid {
    uint16_t psm = *((uint16_t*)value);
    VLOG(2) << "read psm:" << loghex(psm);

    if (hearingDevice->gap_handle == GAP_INVALID_HANDLE) {
      ConnectSocket(hearingDevice, psm);
    }
  }

  void ConnectSocket(HearingDevice* hearingDevice, uint16_t psm) {
    tL2CAP_CFG_INFO cfg_info = tL2CAP_CFG_INFO{.mtu = 512};