Commit: dbdc52599ddb7056febadc92dad0bae9fb6c8a38
Parent: 80351fac7c1d419583c04f0de4032e87aab9ab92
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-13 19:47:53
Tree: c3276d3c18f6f9cb500882132155153298453fc4

heartrate: Fix registration of notification handler 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.

Diffstat

M profiles/heartrate/heartrate.c | 24 ++++++++- - - - - - - - - - - - - - - -

1 files changed, 8 insertions(+), 16 deletions(-)

View Full Diff | Patch