Skip to content

Commit

Permalink
net: lwm2m: fix observer attribute update logic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mike-scott authored and MaureenHelm committed Jun 7, 2018
1 parent e72dcf0 commit ed3ea06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/lib/lwm2m/lwm2m_engine.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit ed3ea06

Please sign in to comment.