Linux bluetooth development
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/2] heartrate: Fix registration of notification handler
Date: Sat, 13 Oct 2012 19:49:14 +0300	[thread overview]
Message-ID: <20121013164914.GA9534@x220.P-661HNU-F1> (raw)
In-Reply-To: <1350141502-4385-1-git-send-email-andrzej.kaczmarek@tieto.com>

Hi Andrzej,

On Sat, Oct 13, 2012, Andrzej Kaczmarek wrote:
> Notification handler is registered only when CCC is written during
> descriptors discovery, i.e. at least one watcher is registered before
> device is connected. This means there will be no handler registered in
> case watcher is registered after device already connected.
> This is side-effect of 74a9fc7.
> 
> This patch registers handler immediately when measurement characteristic
> is discovered so it does not matter when watcher is registered.
> 
> ccc_write_cb() is reduntant in this case so it's removed.
> ---
>  profiles/heartrate/heartrate.c | 24 ++++++++----------------
>  1 file changed, 8 insertions(+), 16 deletions(-)

Both patches have been applied. Thanks.

Johan

      parent reply	other threads:[~2012-10-13 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13 15:18 [PATCH 1/2] heartrate: Fix registration of notification handler Andrzej Kaczmarek
2012-10-13 15:18 ` [PATCH 2/2] heartrate: Remove unused measurement characteristic value handle Andrzej Kaczmarek
2012-10-13 16:49 ` Johan Hedberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121013164914.GA9534@x220.P-661HNU-F1 \
    --to=johan.hedberg@gmail.com \
    --cc=andrzej.kaczmarek@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox