[Bug 434529] Re: Support for baudrate > 115200

JohnMayer launchpad at bytedump.com
Tue Sep 22 08:59:13 UTC 2009


Here is a simple patch to add support for baudrate 230400

diff -u orig/src/serie.c modif/src/serie.c
--- orig/src/serie.c	2005-09-22 21:49:38.000000000 +0200
+++ modif/src/serie.c	2009-09-22 09:26:23.000000000 +0200
@@ -253,6 +253,9 @@
     case 115200:
       termios_p.c_cflag = B115200;
       break;
+    case 230400:
+      termios_p.c_cflag = B230400;
+      break;
     }
   switch(config.bits)
     {

 diff -u orig/src/config.c modif/src/config.c
--- orig/src/config.c	2005-11-14 20:43:56.000000000 +0100
+++ modif/src/config.c	2009-09-22 09:27:42.000000000 +0200
@@ -216,6 +216,7 @@
   liste = g_list_append(liste, "38400");
   liste = g_list_append(liste, "57600");
   liste = g_list_append(liste, "115200");
+  liste = g_list_append(liste, "230400");
   gtk_combo_set_popdown_strings(GTK_COMBO(Combo), liste);
   gtk_combo_set_value_in_list(GTK_COMBO(Combo), TRUE, FALSE);
 
@@ -936,6 +937,7 @@
     case 38400:
     case 57600:
     case 115200:
+    case 230400:
       break;
       
     default:

-- 
Support for baudrate > 115200
https://bugs.launchpad.net/bugs/434529
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list