提交 54b693b3 编写于 作者: B Bernard Xiong

Merge pull request #242 from bright-pan/master

Fix rt_serial_control() bug for customized command and indent the code
......@@ -360,6 +360,11 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
/* configure device */
serial->ops->configure(serial, (struct serial_configure *)args);
break;
default :
/* control device */
serial->ops->control(serial, cmd, args);
break;
}
return RT_EOK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册