Parent: 726dc13a33ef1a73854521f9306536904b48eb93
Author: Santiago Carot-Nemesio <sancane@gmail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-12-15 13:24:23
Tree: 60ce96598d8b6643d70638239eb8fdd9cf349190
thermometer: Fix bad read operation when time stamp is not provided Time stamp value is an optional field provided in the measure, so next value in the array will start in a different index depending if the time stamp was provided or not. This patch check this case and update the index to a proper value in the byte array before reading the temperature type value.
Diffstat
| M | thermometer/thermometer.c | | | 10 | ++++++++- - |
1 files changed, 8 insertions(+), 2 deletions(-)