[moserial] Added 1M and 2M baud rates; fix typo in 900kbaud rate name



commit 77041849f7dd2b551082ff9e7a57297b3c0faa8e
Author: Cortland Setlow <cortland setlow gmail com>
Date:   Fri May 29 09:41:27 2009 -0400

    Added 1M and 2M baud rates; fix typo in 900kbaud rate name
---
 data/glade/moserial.ui    |    8 +++++++-
 src/SerialConnection.vala |    6 ++++++
 src/posix.vapi            |    2 ++
 3 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/data/glade/moserial.ui b/data/glade/moserial.ui
index 464ee18..6423af3 100644
--- a/data/glade/moserial.ui
+++ b/data/glade/moserial.ui
@@ -197,7 +197,13 @@
         <col id="0">576000</col>
       </row>
       <row>
-        <col id="0">927600</col>
+        <col id="0">921600</col>
+      </row>
+      <row>
+        <col id="0">1000000</col>
+      </row>
+      <row>
+        <col id="0">2000000</col>
       </row>
     </data>
   </object>
diff --git a/src/SerialConnection.vala b/src/SerialConnection.vala
index b42fafb..b3fcc13 100644
--- a/src/SerialConnection.vala
+++ b/src/SerialConnection.vala
@@ -185,6 +185,12 @@ public class moserial.SerialConnection : GLib.Object
                 case 921600:
                         baudRate=POSIX.BaudRate.B921600;
                         break;
+                case 1000000:
+                        baudRate=POSIX.BaudRate.B1000000;
+                        break;
+                case 2000000:
+                        baudRate=POSIX.BaudRate.B2000000;
+                        break;
                 }
 
                 newtio.set_output_speed(baudRate);
diff --git a/src/posix.vapi b/src/posix.vapi
index 4c7ec8f..ce1ede9 100644
--- a/src/posix.vapi
+++ b/src/posix.vapi
@@ -683,6 +683,8 @@ namespace POSIX
 		public const uint B460800;
 		public const uint B576000;
 		public const uint B921600;
+		public const uint B1000000;
+		public const uint B2000000;
 	}
 	
 	[CCode (lower_case_cprefix = "", cheader_filename = "termios.h")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]