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:
parent
e72dcf0290
commit
ed3ea06f88
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue