commit | 157115c7d8770b2dc7c5772c9184f875357cf9f3 | [log] [tgz] |
---|---|---|
author | Michael Scott <michael.scott@linaro.org> | Tue Nov 14 10:31:02 2017 -0800 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Wed Nov 15 15:31:45 2017 +0200 |
tree | 2f322654eb36acb139fb2bcb691205f011eb4626 | |
parent | 806d8f3baa16f54a56339487478878230e003be5 [diff] |
net: lwm2m: temp_sensor: fix min/max measurement values Initial values for the min/max measurements were 0 and this caused issues with sensors maximums that weren't above 0 and minimums that went below 0. Let's update those to MAX_INT so the first sensor value update will set those to correct values. When resetting the measured values, let's use the current sensor value not 0. Signed-off-by: Michael Scott <michael.scott@linaro.org>