net: lwm2m: Fixed cached readtime

Added missing typecast for time read.

Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no>
This commit is contained in:
Juha Heiskanen 2022-10-05 12:00:35 +03:00 committed by Fabio Baltieri
commit 8e1ade2663

View file

@ -1091,7 +1091,7 @@ static int lwm2m_read_cached_data(struct lwm2m_message *msg,
break;
case LWM2M_RES_TYPE_TIME:
ret = engine_put_time(&msg->out, &msg->path, buf.u32);
ret = engine_put_time(&msg->out, &msg->path, (int64_t)buf.u32);
break;
default: