Commit 916d346f authored by yoogx's avatar yoogx

* Correct baud rade configuration

        For openaadl/ocarina#175
parent adf08ce5
......@@ -222,7 +222,6 @@ void __po_hi_c_driver_rtems_drvmgr_serial_init (__po_hi_device_id id)
newtio.c_lflag |= ICANON;
newtio.c_cc[VMIN]=1;
newtio.c_cc[VTIME]=0;
cfmakeraw (&newtio);
switch (__po_hi_c_driver_serial_common_get_speed (id))
{
......@@ -251,6 +250,8 @@ void __po_hi_c_driver_rtems_drvmgr_serial_init (__po_hi_device_id id)
break;
}
cfmakeraw (&newtio);
max_size = 1024;
#ifdef __PO_HI_MESSAGES_MAX_SIZE
max_size = 4 * __PO_HI_MESSAGES_MAX_SIZE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment