1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/wakaama: use ztimer

This commit is contained in:
Leandro Lanzieri 2021-11-02 11:37:17 +01:00
parent 1ef44844e0
commit 5aa99c0337
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,8 @@ USEMODULE += wakaama_objects
# include the 'device' object implementation (mandatory)
USEMODULE += wakaama_objects_device
USEMODULE += xtimer
USEMODULE += ztimer
USEMODULE += ztimer_sec
USEPKG += tlsf
# If logs for the package are active, we need fmt

View File

@ -34,7 +34,7 @@
#include <stdlib.h>
#include <string.h>
#include "xtimer.h"
#include "ztimer.h"
#include "tlsf.h"
#include "lwm2m_platform.h"
@ -103,7 +103,7 @@ int lwm2m_strncmp(const char *s1, const char *s2, size_t n)
time_t lwm2m_gettime(void)
{
return (time_t)(xtimer_now_usec64() / US_PER_SEC);
return (time_t)(ztimer_now(ZTIMER_SEC));
}
/* For clang we need to specify that the first argument will be a format string