From 1b867ec426b921e4b6c37e85136b1df3db754e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Sun, 8 Dec 2024 14:07:33 +0100 Subject: [PATCH] Use _Z_RES_OK instead of 0 --- src/system/freertos_plus_tcp/system.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/system/freertos_plus_tcp/system.c b/src/system/freertos_plus_tcp/system.c index c0b9958c8..bf9585270 100644 --- a/src/system/freertos_plus_tcp/system.c +++ b/src/system/freertos_plus_tcp/system.c @@ -117,7 +117,7 @@ z_result_t _z_task_init(_z_task_t *task, z_task_attr_t *attr, void *(*fun)(void z_result_t _z_task_join(_z_task_t *task) { xEventGroupWaitBits(task->join_event, 1, pdFALSE, pdFALSE, portMAX_DELAY); - return 0; + return _Z_RES_OK; } z_result_t _z_task_detach(_z_task_t *task) { @@ -131,7 +131,7 @@ z_result_t _z_task_cancel(_z_task_t *task) { vTaskDelete(task->handle); task->handle = NULL; } - return 0; + return _Z_RES_OK; } void _z_task_free(_z_task_t **task) { @@ -179,17 +179,17 @@ z_result_t _z_condvar_wait(_z_condvar_t *cv, _z_mutex_t *m) { return -1; } /*------------------ Sleep ------------------*/ z_result_t z_sleep_us(size_t time) { vTaskDelay(pdMS_TO_TICKS(time / 1000)); - return 0; + return _Z_RES_OK; } z_result_t z_sleep_ms(size_t time) { vTaskDelay(pdMS_TO_TICKS(time)); - return 0; + return _Z_RES_OK; } z_result_t z_sleep_s(size_t time) { vTaskDelay(pdMS_TO_TICKS(time * 1000)); - return 0; + return _Z_RES_OK; } /*------------------ Clock ------------------*/