From c2b89cde8ed5d236e447b98ca4c181a76c028179 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 11 Sep 2006 22:36:50 +0000 Subject: 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 --- comport/comport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comport/comport.c') 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 */ -- cgit v1.2.1