default baud rate was being set to 14400 while the message was saying 9600. It is now set to 9600 properly
svn path=/trunk/externals/iem/comport/; revision=5918
This commit is contained in:
parent
3eedcabd4a
commit
c2b89cde8e
1 changed files with 2 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ static long get_baud_ratebits(t_float *baud)
|
|||
if(i==BAUDRATETABLE_LEN || baudspeedbittable[i] < 0)
|
||||
{
|
||||
post("*Warning* The baud rate %d is not supported or out of range, using 9600\n",*baud);
|
||||
i = 7;
|
||||
i = 8;
|
||||
}
|
||||
*baud = baudratetable[i];
|
||||
|
||||
|
|
@ -981,6 +981,7 @@ static void *comport_new(t_floatarg com_num, t_floatarg fbaud)
|
|||
|
||||
|
||||
/* Open the Comport for RD and WR and get a handle */
|
||||
/* this line should use a real serial device */
|
||||
strncpy(test.serial_device_name, serial_device_name, strlen(serial_device_name)+1);
|
||||
test.baud = fbaud;
|
||||
test.data_bits = 8; /* default 8 data bits */
|
||||
|
|
|
|||
Loading…
Reference in a new issue