lightwaverf 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lightwaverf.rb +2 -5
- metadata +1 -1
data/lib/lightwaverf.rb
CHANGED
@@ -119,11 +119,8 @@ class LightWaveRF
|
|
119
119
|
|
120
120
|
def energy
|
121
121
|
data = self.raw '666,@?'
|
122
|
-
|
123
|
-
|
124
|
-
rescue
|
125
|
-
data
|
126
|
-
end
|
122
|
+
# /W=(?<usage>\d+),(?<max>\d+),(?<today>\d+),(?<yesterday>\d+)/.match( data ) # ruby 1.9 only?
|
123
|
+
/W=(\d+),(\d+),(\d+),(\d+)/.match( data )
|
127
124
|
end
|
128
125
|
|
129
126
|
def raw command
|