Skip to content

Commit

Permalink
Merge pull request #50 from chris-dewbery-imgtec/default_pmin_fix
Browse files Browse the repository at this point in the history
Fix default pmin value as this was preventing notifications on the cl…
  • Loading branch information
rolandbewick-img committed Mar 14, 2016
2 parents 952be66 + ebbaaa0 commit a0cbe9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/client/lwm2m_server_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ static int Lwm2mServer_ResourceReadHandler(void * context, ObjectIDType objectID
*bufferLen = -1;
}
}
else
{
*bufferLen = -1;
}
return *bufferLen;
}

Expand Down Expand Up @@ -334,7 +338,7 @@ void Lwm2mCore_SetServerUpdateRegistration(Lwm2mContextType * context, int serve

int Lwm2mServerObject_GetDefaultMinimumPeriod(Lwm2mContextType * context, int shortServerID)
{
int64_t defaultMinimumPeriod = -1;
int64_t defaultMinimumPeriod = 0;
Lwm2mServerType * server = GetServerObjectByShortServerID(context, shortServerID);
if (server != NULL)
{
Expand Down

0 comments on commit a0cbe9d

Please sign in to comment.