net: lwm2m: Convert to new timeout API

Align LWM2M stack implementation with the new timeout API.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-04-24 15:32:39 +02:00 committed by Jukka Rissanen
commit 40ac0a7a7d
5 changed files with 22 additions and 22 deletions

View file

@ -122,7 +122,7 @@ static int start_buzzer(struct ipso_buzzer_data *buzzer)
lwm2m_engine_set_bool(path, true);
float2ms(&buzzer->delay_duration, &temp);
k_delayed_work_submit(&buzzer->buzzer_work, temp);
k_delayed_work_submit(&buzzer->buzzer_work, K_MSEC(temp));
return 0;
}