mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 21:03:32 +08:00
Fix rt_serial_control() bug for customized command and indent the code
This commit is contained in:
parent
a4cd949519
commit
9ab853aca3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user