diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-09-11 22:36:50 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-09-11 22:36:50 +0000 |
commit | c2b89cde8ed5d236e447b98ca4c181a76c028179 (patch) | |
tree | e6b5dc601a48e88037dacbf98b433ca84fb5eae3 | |
parent | 3eedcabd4a121465600a38be89a264ebe06a6839 (diff) |
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
-rw-r--r-- | comport/comport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comport/comport.c b/comport/comport.c index 6a4d0de..51f9a5c 100644 --- a/comport/comport.c +++ b/comport/comport.c @@ -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 */ |