From 620164975a968c4404c96f3e9ed1a7b9a63d6cb6 Mon Sep 17 00:00:00 2001 From: Tobias Jahnke Date: Wed, 23 Aug 2017 10:53:41 +0200 Subject: implements value retransmit and reload on failure --- HAL-afb/HAL_MOST_UNICENS/wrap_unicens.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'HAL-afb/HAL_MOST_UNICENS/wrap_unicens.c') diff --git a/HAL-afb/HAL_MOST_UNICENS/wrap_unicens.c b/HAL-afb/HAL_MOST_UNICENS/wrap_unicens.c index 0923c26..095a2fe 100644 --- a/HAL-afb/HAL_MOST_UNICENS/wrap_unicens.c +++ b/HAL-afb/HAL_MOST_UNICENS/wrap_unicens.c @@ -277,8 +277,8 @@ static void wrap_ucs_i2cwrite_cb(void *closure, int status, struct json_object * async_job_t *job_ptr = (async_job_t *)closure; if (job_ptr->result_fptr) - job_ptr->result_fptr(0U, job_ptr->result_user_ptr); - + job_ptr->result_fptr((uint8_t)abs(status), job_ptr->result_user_ptr); + free(closure); } } -- cgit 1.2.3-korg