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

Commit 0c78fa89 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Automerger Merge Worker
Browse files

Merge "GATT multi read: account for length for variable length read" into tm-dev am: 3daec42d

parents 84f62a7a 3daec42d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -178,6 +178,9 @@ static void build_read_multi_rsp(tGATT_SR_CMD* p_cmd, uint16_t mtu) {

    if (p_rsp != NULL) {
      total_len = (p_buf->len + p_rsp->attr_value.len);
      if (p_cmd->multi_req.variable_len) {
        total_len += 2;
      }

      if (total_len > mtu) {
        /* just send the partial response for the overflow case */