Skip to content

Commit 27b3591

Browse files
committed
quectel: Change thread create to return thread id.
Signed-off-by: Nikola Neskovic <nikola.neskovic@quectel.com>
1 parent 7152ea8 commit 27b3591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/quectel/mpthreadport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int mp_thread_create_ex(void *(*entry)(void *), void *arg, size_t *stack_size, i
176176

177177
mp_thread_mutex_unlock(&thread_mutex);
178178

179-
return (int)th;// return task_node
179+
return (int)th->id;// return task_node
180180
}
181181

182182
// forrest.liu@20210408 increase the priority for that python thread can,t be scheduled

0 commit comments

Comments
 (0)