Skip to content

Commit

Permalink
Replace z_result returns with _Z_RES and _Z_ERR
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Dec 8, 2024
1 parent f742e92 commit 207c636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/freertos_plus_tcp/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ z_result_t _z_task_init(_z_task_t *task, z_task_attr_t *attr, void *(*fun)(void
} else {
#endif /* SUPPORT_STATIC_ALLOCATION */
if (xTaskCreate(z_task_wrapper, attr->name, attr->stack_depth, task, attr->priority, &task->handle) != pdPASS) {
return -1;
return _Z_ERR_GENERIC;
}
#if (configSUPPORT_STATIC_ALLOCATION == 1)
}
Expand Down Expand Up @@ -251,5 +251,5 @@ z_result_t _z_get_time_since_epoch(_z_time_since_epoch *t) {
gettimeofday(&now, NULL);
t->secs = (uint32_t)now.tv_sec;
t->nanos = (uint32_t)now.tv_usec * 1000;
return 0;
return _Z_RES_OK;
}

0 comments on commit 207c636

Please sign in to comment.