lib: updatehub: Update to new timeout api

Update to new timeout api. Without this change UpdateHub don't build
anymore.

Fixes: #25230

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
This commit is contained in:
Gerson Fernando Budke 2020-05-11 23:21:28 -03:00 committed by Carles Cufí
commit 4980a13fc4

View file

@ -32,7 +32,7 @@ LOG_MODULE_REGISTER(updatehub);
#include <net/tls_credentials.h>
#endif
#define NETWORK_TIMEOUT K_SECONDS(2)
#define NETWORK_TIMEOUT (2 * MSEC_PER_SEC)
#define UPDATEHUB_POLL_INTERVAL K_MINUTES(CONFIG_UPDATEHUB_POLL_INTERVAL)
#define MAX_PATH_SIZE 255
/* MAX_PAYLOAD_SIZE must reflect size COAP_BLOCK_x option */