Skip to content

Commit 3eec0d9

Browse files
Chimstazmaxiwoj
andauthored
Update Src/communication/wakaama_client/platform/platform.c
Co-Authored-By: maxiwoj <[email protected]>
1 parent 19fed64 commit 3eec0d9

File tree

1 file changed

+1
-1
lines changed
  • Src/communication/wakaama_client/platform

1 file changed

+1
-1
lines changed

Src/communication/wakaama_client/platform/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ time_t lwm2m_gettime(void) {
6666
// TODO: Now we use 32bit counter and it will overflow.
6767
// Maybe export xNumOfOverflows from tasks.c and do something like that:
6868
// return (xNumOfOverflows << 16) | (xTaskGetTickCount >> 16)
69-
return xTaskGetTickCount();
69+
return xTaskGetTickCount() / configTICK_RATE_HZ;
7070
}
7171

7272
#ifdef LWM2M_WITH_LOGS

0 commit comments

Comments
 (0)