Commit: 53daf29fb38a65b0f44eaca03b22136857b0d25e
Parent: 215f837470d47187f58c1bfdc4c12eb74791bf77
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-09 18:56:33
Tree: f0f7989b1a894267f4168fb0e176c5f8c1a91200

thermometer: Refactor processing of measurement characteristic value Data buffer is read by simply moving buffer pointer instead of calculating indexes of consecutive fields. This makes function flow easier to follow as there's no need to care about presence of fields prior to current when reading data.

Diffstat

M profiles/thermometer/thermometer.c | 66 +++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 37 insertions(+), 29 deletions(-)

View Full Diff | Patch