serial: set the errno if and only if in thread context
The errno is associated with threads. It will crash the thread if we set it in interrupt context.
Showing
想要评论请 注册 或 登录
The errno is associated with threads. It will crash the thread if we set it in interrupt context.