Floppy-rb232 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/src/port.c +3 -1
- metadata +2 -2
data/src/port.c
CHANGED
@@ -126,10 +126,12 @@ VALUE rb232_port_initialize_with_options(VALUE self, VALUE port, VALUE options)
|
|
126
126
|
case 38400:
|
127
127
|
port_data->settings.c_cflag |= B38400;
|
128
128
|
break;
|
129
|
+
case 57600:
|
130
|
+
port_data->settings.c_cflag |= B57600;
|
131
|
+
break;
|
129
132
|
default:
|
130
133
|
rb_raise(rb_eArgError, "baud_rate must be a valid value");
|
131
134
|
}
|
132
|
-
port_data->settings.c_cflag |= B9600;
|
133
135
|
/* Data bits */
|
134
136
|
switch (port_data->data_bits) {
|
135
137
|
case 8:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Floppy-rb232
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-02-19 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|