net: lwm2m: fix observer attribute update logic

A typo in update_attrs() was setting every observer to a PMIN of 0.
This meant we could send observer data as often as the process was
called.  This is out of spec as the default minimum is 10 seconds.

Signed-off-by: Michael Scott <michael@opensourcefoundries.com>
This commit is contained in:
Michael Scott 2018-06-06 12:35:13 -07:00 committed by Maureen Helm
commit ed3ea06f88

View file

@ -332,7 +332,7 @@ static int update_attrs(void *ref, struct notification_attrs *out)
int i;
for (i = 0; i < CONFIG_LWM2M_NUM_ATTR; i++) {
if (ref == write_attr_pool[i].ref) {
if (ref != write_attr_pool[i].ref) {
continue;
}