Floppy-currentcost 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/currentcost/meter.rb +1 -1
- metadata +2 -2
data/lib/currentcost/meter.rb
CHANGED
|
@@ -40,7 +40,7 @@ module CurrentCost
|
|
|
40
40
|
# This function will automatically start processing serial data on the
|
|
41
41
|
# specified port. To stop this processing, call close.
|
|
42
42
|
def initialize(port = '/dev/ttyS0', options = {})
|
|
43
|
-
@port = RB232::Port.new(port, :baud_rate => options[:cc128] == true ? 57600 : 9600)
|
|
43
|
+
@port = RB232::Port.new(port, :baud_rate => (options[:cc128] == true ? 57600 : 9600), :data_bits => 8, :stop_bits => 1, :parity => false)
|
|
44
44
|
@protocol = RB232::TextProtocol.new(@port, "\n")
|
|
45
45
|
@protocol.add_observer(self)
|
|
46
46
|
@protocol.start
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: Floppy-currentcost
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
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: 2009-
|
|
12
|
+
date: 2009-05-11 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|